Phat

What is the smallest positive integer that gives a remainder of 16 when divided by 17, gives a remainder of 15 when divided by 16, and is divisible by 49?


The answer is 5439.

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.

4 solutions

Abysse Synus
Jun 10, 2016

n=16 (17); n=15 (16); n=0 (49)

So n+1 = 0 (17) = 0 (16) = 0 (272) (I have chosen 272=16×17 because 17 is prime)

272 = 27 (49); 20×272 = 1 (49)

So n = 20 × 272 - 1 = 5440 - 1 = 5439

Why don't you write (mod 17) instead of (17) as it looks confusing. In addition to that, try to use LaTeX

James Bacon - 2 years, 9 months ago
Peter Macgregor
Jun 10, 2016

We have to solve three simultaneous equations

x=16 mod 17; x=15 mod 16; x=0 mod 49 \boxed{\text{x=16 mod 17; x=15 mod 16; x=0 mod 49}}

From the first of these equations we have

x = 16 + 17 m ( 1 ) x=16+17m\dots (1)

Substituting this in the second boxed equation gives

16 + 17 m = 15 mod 16 16+17m=15 \text{ mod 16}

Since we are working modulo 16 we can subtract 16 ( 1 + m ) 16(1+m) from the left hand side without affecting the cogruence, so

m = 15 mod 16 m=15 \text{ mod 16}

Substituting this in (1) gives

x = 16 + 17 × 15 mod (17 * 16) x=16+17\times 15 \text{ mod (17 * 16)}

x = 271 mod 272 \implies x=271 \text{ mod 272}

x = 1 mod 272 ( 2 ) \implies x=-1 \text{ mod 272}\dots(2)

Now we use the last of the boxed conditions, which demands that

x = 49 y ( 3 ) x=49y\dots(3)

Substituting this in (2) gives

49 y = 1 mod 272 49y=-1 \text{ mod 272}

The inverse of 49 modulo 272 is 161. I found this using the Euclidean algorithm, and confirmed it using an online modular inverse calculator. So multiplying by 161 gives

y = 161 mod 272 y=-161 \text{ mod 272}

y = 111 mod 272 \implies y=111 \text{ mod 272}

This is the smallest possible positive value of y, and so substituting this in (3) gives the smallest possible solution to the boxed equations -

x = 49 × 111 = 5439 x=49 \times 111=\boxed{5439}

Try putting brackets around (mod n) or use \pmod. It is more clear and much better

James Bacon - 2 years, 9 months ago
Andrew Lin
Jun 14, 2016

First we observe that the positive integer N is congruent to -1 mod 16 and -1 mod 17. Thus we write N as N=16 17 k-1=272k-1 for some positive integer k.

272k-1 = 0 (mod 49) becomes 27k = 1 (mod 49). Thus, we find the inverse of 27 mod 49 which is 20 (you can do this by the extended Euclidean Algorithm or Guess and Check). k=20 is the smallest value that satisfies 27k=1 (mod 49), as it is the inverse, so N=272*20-1=5439.

Rohit Sachdeva
Jun 12, 2016

Let N = 17A-1 = 16B-1 = 49C

Which gives B = (49C+1)/16 = (48C+C+1)/16

This gives minimum C=15 and B=46

Now 17A = 16B = 16(46+49k)

Since 46 is 12mod(17) and 49 is -2mod(17), we take k=6 to get,

17A = 16(46+294) = 5440

Therefore, N = 5440-1 = 5439

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...