Skip to content
Vamshi Jandhyala

Books · Number Puzzles

Chapter 34

Threading Thirty-One and Seventy-Three

Find whole numbers mm and nn, allowing them to be negative, so that 31m+73n=1.31m + 73n = 1.

Solution

Run Euclid’s algorithm on the two numbers, then unwind it. Dividing repeatedly, 73=231+11,31=211+9,11=19+2,9=42+1,73 = 2 \cdot 31 + 11, \quad 31 = 2 \cdot 11 + 9, \quad 11 = 1 \cdot 9 + 2, \quad 9 = 4 \cdot 2 + 1, which confirms the two numbers share no common factor, so a solution exists. Now read the chain backwards, expressing the final remainder 11 in terms of earlier ones: 1=942=59411=5311411=33311473.1 = 9 - 4 \cdot 2 = 5 \cdot 9 - 4 \cdot 11 = 5 \cdot 31 - 14 \cdot 11 = 33 \cdot 31 - 14 \cdot 73. So m=33m = 33, n=14n = -14, and indeed 31337314=10231022=131 \cdot 33 - 73 \cdot 14 = 1023 - 1022 = 1. Every solution has the form m=33+73tm = 33 + 73t, n=1431tn = -14 - 31t for a whole number tt, since one can shift a multiple of 733173 \cdot 31 between the two terms.