A Division has different results (2)

Assume N N is a dividend which is a positive integer with 2 different results.

1. 1. N N is divided by 32 32 with remainder 31 31 .

2. 2. N N is divided by 42 42 with remainder 37 37 .

The congruence can express as N a m o d b N\equiv a\mod{b} , which a a and b b are positive integers, with a a being the the minimum dividend and gcd ( a , b ) = 1 \gcd(a,b)=1 . Find the value of b a b-a .


The answer is 257.

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

Vincent Huang
Oct 14, 2020

By using Diophantine Equation , let x x and y y are different quotients:

31 + 32 x = 37 + 42 y 16 x 21 y = 3 { x = 12 + 21 t y = 9 + 16 t \begin{array}{l} 31+32x=37+42y\\ \rightarrow16x-21y=3\\ \rightarrow \begin {cases} x=12+21t\\y=9+16t \end{cases} \end{array}

Then insert into original equation:

31 + 32 ( 12 + 21 t ) N = 415 + 672 t N 415 m o d 672 ( a , b ) = ( 415 , 672 ) \begin{array}{l}31+32(12+21t)\\ \rightarrow N=415+672t\\ \rightarrow N≡415 \mod{672}\\ \rightarrow (a,b)=(415,672) \end{array}

Therefore, b a = 257 b-a=\boxed{257} .

Very nice. Could you explain a little more how you got to the forms for x , y x,y in terms of t t ? (It seems that's the key step.) Does it rely on "knowing" (or calculating) that 16 × 12 21 × 9 = 3 16\times 12 - 21 \times 9 = 3 , or is there a more systematic way?

Chris Lewis - 8 months ago
Chris Lewis
Oct 14, 2020

@Vincent Huang 's solution is great - I'm just adding this to show a method that can easily be extended to more complicated questions.

Since one of the quotients is a power of two, we can solve this just using parity. Any time we find a number k k that must be even, we'll replace it by 2 k 2k' ; any that must be odd we'll replace with 2 k + 1 2k'+1 . I am not good at mental arithmetic, so I'll do everything possible to keep numbers small; starting by rewriting the first congruence as N = 32 x 1 N=32x-1 and the second as N = 42 y 5 N=42y-5 for some x , y x,y : 32 x 1 = 42 y 5 32 x + 4 = 42 y 16 x + 2 = 21 y , so y is even 16 x + 2 = 42 y 8 x + 1 = 21 y , so y is odd 8 x + 1 = 42 y + 21 4 x = 21 y + 10 , so y is even 4 x = 42 y + 10 2 x = 21 y + 5 , so y is odd 2 x = 42 y + 26 x = 21 y + 13 \begin{aligned} 32x-1 &= 42y-5 \\ 32x+4 &= 42y \\ 16x+2 &= 21y \text{, so }y \text{ is even} \\ 16x+2 &= 42y' \\ 8x+1 &= 21y' \text{, so }y' \text{ is odd} \\ 8x+1 &= 42y''+21 \\ 4x &=21y''+10 \text{, so }y'' \text{ is even} \\ 4x &= 42y'''+10 \\ 2x &=21y'''+5 \text{, so }y''' \text{ is odd} \\ 2x &= 42y''''+26 \\ x &= 21y''''+13 \end{aligned}

or, letting u = y u=y'''' , we have x = 21 u + 13 x=21u+13 .

Hence N = 32 ( 21 u + 13 ) 1 = 672 u + 415 N=32(21u+13)-1=672u+415 , ie N 415 ( m o d 672 ) N \equiv 415 \pmod{672} and b a = 257 b-a=\boxed{257} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...