![]() |
![]() |
#12 |
"Serge"
Mar 2008
San Diego, Calif.
2×3×1,733 Posts |
![]()
That was a good one!
Meanwhile, In Soviet Russia, 1 is defined as 0^0 by Supreme Leader. In Soviet Russia, no one knows the truth before Putin blurts a few words on the subject. Then it becomes the truth and everyone is required by law to repeat it. Those who don't get 10, 15, 25 years in prison. |
![]() |
![]() |
![]() |
#13 |
Romulan Interpreter
"name field"
Jun 2011
Thailand
2×5,179 Posts |
![]()
Leading zeros don't count.
|
![]() |
![]() |
![]() |
#14 |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
23·857 Posts |
![]()
For those that don't like using 00, here is a solution for a longer version:
Code:
r=range(10) for a in r: for b in r: for c in r: for d in r: for e in r: for f in r: if a*100000+b*10000+c*1000+d*100+e*10+f==a**b+c**d+e**f:print(a,b,c,d,e,f) Code:
0 0 0 0 0 2 0 1 7 5 3 6 |
![]() |
![]() |
![]() |
#15 | |
Feb 2017
Nowhere
650910 Posts |
![]() Quote:
Your additive problem has no solutions with more than 10 digits, because k*9^9 < 10^(2*k - 1) for k > 5. |
|
![]() |
![]() |
![]() |
#16 |
Jan 2017
101011102 Posts |
![]() |
![]() |
![]() |
![]() |
#17 |
Jan 2017
2·3·29 Posts |
![]()
I also checked for 10 digit sums with close misses - closest was 40357946 (that's 8 digits with an error of 1, found as 10 digits with an error of 2, with one more from an extra +0^0).
|
![]() |
![]() |
![]() |
#18 | |
"H. Stamm-Wilbrandt"
Jul 2023
Eberbach/Germany
22·11 Posts |
![]()
Back to original problem:
Quote:
Instead of forvec use for loop. And convert number with "digits()" and multi assign. Result is 60 character PARI/GP one-liner: Code:
$ gp -q ? for(i=1000,9999,[a,b,c,d]=digits(i);if(a^b*c^d==i,print(i))) 2592 ? |
|
![]() |
![]() |
![]() |
#19 | |
"Serge"
Mar 2008
San Diego, Calif.
1039810 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#20 |
"H. Stamm-Wilbrandt"
Jul 2023
Eberbach/Germany
22×11 Posts |
![]()
While I agree with you in general, I don't see how your statement applies to my previous post.
Only smartphone with me currently, but PariDroid runtime reported is 0ms, see attachment. |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find Kaprekar's constants and cycles of the Kaprekar mapping of 9-digit to 12-digit numbe in base 12 | sweety439 | sweety439 | 0 | 2020-02-11 03:12 |
About Psieve results and ABCD files | Retep | Riesel Prime Search | 8 | 2013-10-31 11:35 |
Chance to find an n-digit factor with ECM | RedGolpe | Factoring | 4 | 2007-03-23 15:24 |
how do you find number of digits of a 2^n number? | Unregistered | Math | 11 | 2004-11-30 22:53 |
10,000,000 digit number | Unregistered | Software | 3 | 2004-03-03 19:20 |