A number theory problem by Paola Ramírez

Let be n n a positive integer which satisfies the following conditions:

  • n n is even.
  • n n divided by 5 leaves a remainder of 1.
  • n n is divisible by 7.
  • n < 1000 n<1000 .
  • The sum of digits of n n is 23.

Find n n .


The answer is 896.

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.

1 solution

Guilherme Niedu
May 13, 2016

Lets call the digits of n n (n has up to three digits, since n < 1000 n<1000 ) as a , b , c a, b, c (i.e. n = a b c n = \overline{abc} ). If n n has a remainder of 1 1 when divided by 5 5 , c c is either 1 1 or 6 6 .

Since n n is even, c = 6 \fbox{c = 6}

The digits sum up to 23 23 , which means that a + b + c = 23 a + b + c = 23 , or a + b = 17 a + b = 17 . Since a a and b b are digits, they are natural numbers between 0 0 and 9 9 , which means that either a = 8 a = 8 and b = 9 b = 9 ( n = 896 n = 896 ) or a = 9 a = 9 and b = 8 b = 8 ( n = 986 n = 986 ).

986 986 is not divisible by 7 7 , so the answer is 896 \fbox{896}

n is congruent to 0 mod 7 and 1 mod 5. Solve simultaneous linear congruences using Chinese remainder theorem (as 7 and 5 are co prime integers) to get a n is congruent to 21 mod 5. Keep adding 35 to the remainder to find all possibilities. 896 is only possible solution for n

Elliot Ede - 2 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...