Freigeben über


A fun math problem

Thanks for visiting! I have moved my blog. An updated version of this post can be found here.

Comments

  • Anonymous
    December 09, 2010
    Two minor observations: First: In the declaration   Decisions[Integers[0, 9], x1, x2, y1, y2], The range should be Integers[1, 9].  If 0 is included, this declaration alone could allow for one of the numbers x or y to be single-digit. Second: In the declaration   Decisions[Integers[10, 100], x, y], The range should be Integers[10, 99], as x and y are restricted to be two-digit integers. Of course, given the constraints of the problem, the first and second declarations will work together to ensure that the x and y numbers are only two-digit integers, but it doesn't hurt that the declarations be tighter. Bruno Repetto, PhD