Let the number on mile stone 1 be XY, so on next milestone number will be
YX.
Now if we see the numbers again then it is possible only when mile stone 3
contains a 3 digit number.
Also, from above points it is clear that YX is greater than XY and X!=0 and
Y!=0 and Y>X, and the next number is the number starting from 1.

So, now the possible 3 digit values are 1XY or 1YX or 1AX or 1AY or 1YA or
1XA where A is another variable of single digit.
In first 2 cases(1XY,1YX) we will get Y-X is a fraction so it's not valid
assumption.
Now, in other cases as 1AX or 1XA, on solving X is coming negative so it is
again a false assumption.
In case of 1YA we get an equation in which minimum possible value of Y comes
to be as 12, which is again not accepted.
Finally in 1AY on solving equation comes which satisfies for A=0 and Y=6.
Thus our answer comes as X=1,Y=6,A=0.

So ans is 16,61,106.

This is just for explaining the logic behind this problem. For fast
calculation use hit and trial (1Y,Y1,10Y).

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to