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

 Powering up the digits (Posted on 2009-04-12)
Each of x1, x2 and x3 corresponds to a nonzero digit, whether same or different, in positive integer base b.

Determine all possible value(s) of b ≤ 100 such that this equation has at least one valid solution:

x1x2x3 = x1x1 + x2x2 + x3x3

Note: x1x2x3 corresponds to concatenation of the three digits.

 See The Solution Submitted by K Sengupta No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 program solution | Comment 3 of 4 |
` 10   for Base=3 to 100 20   for X=1 to Base-1:H=X*Base*Base 30   for Y=1 to Base-1:T=Y*Base 40   for Z=1 to Base-1:U=Z 50     if H+T+U=X^X+Y^Y+Z^Z then print Base;X;Y;Z,H+T+U 60   next 70   next 80   next 90   next`
` `
`base x1 x2 x3    decimal value lhs & rhs 4    1  3  1        29 4    3  1  3        5525    5  1  3      315391    6  1  5     49782`

 Posted by Charlie on 2009-04-13 02:55:02

 Search: Search body:
Forums (0)