You are given a 9-digit number a. Let b=a+1.
Now, if you make a big number N by concatenating a and b, then N is divisible by 19.
What is the number a?
Answer
For any a<999,999,999 we have b≤999,999,999 which is 9 digits, too, so the a part in the N number is shifted by 9 decimal places. So N=109⋅a+(a+1)=(109+1)a+1=2,631,579⋅19⋅a+1
which is NOT divisible by 19.Let's try a=999,999,999 then. Hurray! We get b=1,000,000,000 and N=9,999,999,991,000,000,000=526,315,789,000,000,000⋅19
Hence a=999,999,999.
No comments:
Post a Comment