On Wed, 31 Oct 2012 23:57:36 +0000, Nick <
Nick...@yahoo.co.uk>
wrote:
1176470588235294, 2352941176470588, and 3529411764705882 all satisfy
the condition and are smaller.
And the computation is trivial. If we represent the original number
as x*10^n+y with 1<=x<=9, then the transposed number is 10y + x. The
problem is then reduced to finding n, x, and y such that
10y + x = 1.5(x*10^n + y)
which reduces to
y = (3 * 10^n - 2) * x / 17
Performing the arithmetic in C using unsigned long long (up to 20
digits on my system) and varying x from 1 to 9 and n from 1 to 19
(less than 200 test cases) produced ten potential solutions. Five
were bogus because integer division truncation produced an odd y which
can never satisfy the original condition. The five valid solutions
(including 5882352941176470) all had 16 digits. I was a little
surprised that there were no 17-20 digit solutions.
--
Remove del for email