Find All Pairs (x, y) with 0 ≤ x, y ≤ 18 Such That 19 Divides 3x + 4y + 5
At a glance
- 1. Read the congruence
Assume x and y are integers from 0 through 18 and interpret the condition as 19 dividing 3x + 4y + 5.
- 2. Isolate y modulo 19
Use that 5 is the multiplicative inverse of 4 modulo 19 to get y ≡ 4x + 13 (mod 19).
- 3. Choose the allowed residues
For each x from 0 through 18, take the unique representative y between 0 and 18.
- 4. List and check
Record the 19 resulting pairs and verify a sample by substitution.
Assume the condition means that 19 divides , where and are integers in the inclusive range to . The divisibility condition can be solved as a congruence modulo 19. It gives one allowed value of for each allowed value of , so there are 19 pairs in total.
Convert divisibility to a congruence
The statement means that is congruent to 0 modulo 19:
Rearrange to isolate the term involving :
To solve for , multiply both sides by the inverse of 4 modulo 19. Since , that inverse is 5. Therefore,
The last line uses and . Thus, for each , choose the unique from 0 through 18 that is congruent to modulo 19.
List all the pairs
Computing and reducing it to a remainder between 0 and 18 gives:
| 0 | 13 | 7 | 3 | 14 | 12 |
| 1 | 17 | 8 | 7 | 15 | 16 |
| 2 | 2 | 9 | 11 | 16 | 1 |
| 3 | 6 | 10 | 15 | 17 | 5 |
| 4 | 10 | 11 | 0 | 18 | 9 |
| 5 | 14 | 12 | 4 | ||
| 6 | 18 | 13 | 8 |
So the complete solution set is
Why this list is complete
There are 19 possible integer values of , from 0 through 18. For each fixed , the congruence has exactly one solution modulo 19 because 4 has an inverse modulo 19. Each residue class modulo 19 has exactly one representative in the range . Hence each of the 19 choices of produces exactly one allowed , and the table includes every solution.
For example, when , the rule gives . Substitution confirms the divisibility:
When , the rule gives , and .
Common mistakes
- Forgetting to reduce modulo 19. The expression can exceed 18. Reduce it by subtracting 19 as needed; for instance, at it is 21, so the allowed value is .
- Using the wrong inverse. The inverse of 4 modulo 19 is 5, not as an ordinary real number. The check is .
- Including values outside the stated range. A residue such as 21 represents the same class as 2, but only 2 is in the allowed range for .
- Treating the variables as real numbers. Divisibility is defined here for integers. If the variables were not required to be integers, the question would need a different interpretation.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.