Classic number theory problem

What is the largest number below 10000 that leaves a remainder of 9 when divided by 21 and a remainder of 61 when divided by 73?


The answer is 9186.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Naren Bhandari
Mar 3, 2018

Let the largest number less than 10000 be x x and rewriting word problem into system of congruences as x 9 m o d ( 21 ) x 61 m o d ( 73 ) \begin{aligned} & x \equiv 9\mod(21) \\& x\equiv 61\mod(73)\end{aligned} Firstly note that moduli are co-prime integers so we can take for some integer k k and rewrite the equation as x = 73 k + 61 ( a ) x = 73k +61\cdots(a) Now substituting the value of x x to the first congruence we have , 73 k + 61 9 m o d ( 21 ) \begin{aligned} 73k +61 \equiv 9\mod(21)\end{aligned} Now solving for k k we get as k = 1 m o d ( 21 ) \begin{aligned} k = -1 \mod(21)\end{aligned} Writing this congruence for some integer m m as below k = 21 m 1 \begin{aligned} k = 21m -1 \end{aligned} Now plugging the value of k k in equation (a) x = 73 ( 21 m 1 ) + 61 = 1533 m 12 x 12 m o d ( 1533 ) \begin{aligned} x & =73(21m-1)+61 = 1533m - 12 \\& \implies x\equiv -12\mod(1533)\end{aligned} Note that x < 10000 x<10000 so 9210 0 m o d ( 1533 ) 9816 12 m o d ( 1533 ) \begin{aligned} & 9210 \equiv 0\mod(1533) \\& 9816 \equiv -12\mod(1533)\end{aligned} Hence the largest possible of x < 1000 x<1000 is 9186 9186 .

Let the number be N N , then:

N 61 (mod 73) N 73 n + 61 where n is an integer. 73 n + 61 9 (mod 21) 10 n 2 9 (mod 21) \begin{aligned} N & \equiv 61 \text{ (mod 73)} \\ \implies N & \equiv 73n + 61 & \small \color{#3D99F6} \text{where }n \text{ is an integer.} \\ 73n + 61 & \equiv 9 \text{ (mod 21)} \\ 10n - 2 & \equiv 9 \text{ (mod 21)} \end{aligned}

We note that the smallest positive n n that satisfies the congruence is 20 and the larger ones is given by 21 m + 20 21m+20 . Then we have N = 73 ( 21 m + 20 ) + 61 < 10000 N = 73(21m+20) + 61 < 10000 . Implies that the largest m = 5 m=5 and the largest N = 73 ( 21 ( 5 ) + 20 ) + 61 = 9186 N = 73(21(5)+20)+61 = \boxed{9186} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...