The integer 3 4 3 5 is the only so-called perfect digit-to-digit invariant because 3 3 + 4 4 + 3 3 + 5 5 = 3 4 3 5 in base 1 0 .
Can you find the only 5-digit number a 4 a 3 a 2 a 1 a 0 such that a 4 a 0 + a 3 a 1 + a 2 a 2 + a 1 a 3 + a 0 a 4 = a 4 a 3 a 2 a 1 a 0 ?
Note: You have to use the convention 0 0 = 1 .
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.
It does seem more like a computational problem. I did it in Python.
I wonder if it can be solved with Number Theory arguments and principles?
Problem Loading...
Note Loading...
Set Loading...
Here is a Mathematica code that does not use the digit 0
Select[Tuples[Range@9,5],Total[#^Reverse@#]==FromDigits@#&]
this returns {{4, 8, 6, 2, 5}}
but if we want to use zero (in Mathematica 0 0 is Indeterminate expression) and check all 5 digit numbers, we can do it like this:
Select[Range[10000,99999],(t=IntegerDigits@#;Total@Table[If[t[[i]]==t[[s+1-i]]==0,1,t[[i]]^t[[s+1-i]]],{i,s=Length@t}]==#)&]
which returns the same result 48625