It isn't divisible

A and B are distinct two-digit positive integers. The four-digit number X is formed by writing down the number B followed by the number A, and the four-digit number Y is formed by writing down the number A followed by the number B.

What is the smallest positive integer that does not divide X Y |X-Y| for any values of A and B?


The answer is 91.

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

Anirudh Sreekumar
Mar 19, 2017

The 2 digit numbers are A , B A,B

The 4 digit numbers A B \overline{AB} and B A \overline{BA} can be witten as,

A B = 100 A + B \overline{AB}=100A+B

B A = 100 B + A \overline{BA}=100B+A

we get,

A B B A = ( 100 A + B ) ( 100 B + A ) = 99 A B |\overline{AB}-\overline{BA}|=|(100A+B)-(100B+A)|=99|A-B|

now A B |A-B| can take values from 1 1 to 89 89 (as A A and B B are 2 2 digit numbers)

also if A B = 10 , 30 |A-B|=10,30 ,

99 A B 99|A-B| is divisible by 90 90

91 = 13 × 7 91=13\times7 is coprime to 99 99 and thus is the smallest number that doesn't divide A B B A |\overline{AB}-\overline{BA}| for any A , B A,B

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...