If X is a positive number and when on squaring and cubing , it is found that the obtained numbers have distinct digits in both cases below. X 2 = a 0 a 1 a 2 a 3 X 3 = a 4 a 5 a 6 a 7 a 8 a 9 What is the number X ?
Note: Both of the cases in total has 10 distinct digits from 0 to 9 .
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.
The number can't end in 5, 6 or 1 as these numbers end in the same digit when squared and cubed. I used python to solve it and can't think of any better way than trial and error
Problem Loading...
Note Loading...
Set Loading...
I used M a t h e m a t i c a to solve this:
Select[Range@100,Sort@Join[IntegerDigits[#^2],IntegerDigits[#^3]]==Range[0,9]&]
which gave the right answer 6 9