Constraint System Math Example 3

Follow the full solution, then compare it with the other examples linked below.

Example 3

easy
List the integer solutions of x+y=5x + y = 5 with xโ‰ฅ1x \geq 1 and yโ‰ฅ1y \geq 1.

Solution

  1. 1
    Try x=1x = 1: y=4y = 4. Try x=2x = 2: y=3y = 3. Try x=3x = 3: y=2y = 2. Try x=4x = 4: y=1y = 1.
  2. 2
    Solutions: (1,4),(2,3),(3,2),(4,1)(1,4), (2,3), (3,2), (4,1).

Answer

(1,4),(2,3),(3,2),(4,1)(1,4), (2,3), (3,2), (4,1)
With integer constraints, we can enumerate all possibilities that satisfy every condition.

About Constraint System

A collection of equations and inequalities that must ALL be satisfied simultaneously by the same set of variable values.

Learn more about Constraint System โ†’

More Constraint System Examples