All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Pandigital and Pretty Powerful II (Posted on 2009-05-06) Difficulty: 3 of 5
Find all possible positive integer(s) N, such that the decimal representation of the sum of two distinct perfect powers of N consists of non leading zeroes and contains each of the digits from 0 to 9 exactly once.

See The Solution Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
computer solution | Comment 1 of 2

in my program I used the fact that the 2 powers would be at least 2,3 and thus n^3 can't be any larger than 9876543210 and thus need only search for n=2 to 2145.  Then for each n I search for each power that does not make n^p larger than 9876543210.  My Mathematica code is

For[n=2,n„T2145,n++,

p1=3;

While[n^p1„T9876543210,

p2=2;

While[p2<p1,

v1=n^p1;

v2=n^p2;

v3=v1+v2;

dgs=IntegerDigits[v3];

cmb=Sort[dgs];

If[cmbƒú{0,1,2,3,4,5,6,7,8,9},

Print[n,"^",p1,"= ",v1," ",n,"^",p2,"= ",v2," total: ",v3];];

p2++];

p1++];

];

and this gave the following 2 solutions

264^4=485732416 264^3=18399744 total: 4875932160

and

2016^3=819354096 2016^2=4064256 total: 8197604352


  Posted by Daniel on 2009-05-06 11:51:47
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (17)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information