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

Home > Numbers
Powering up the digits II (Posted on 2009-10-22) Difficulty: 3 of 5
Each of X1, X2 and X3 represents a nonzero digit of the 3-digit base M positive integer X1X2X3; where X1, X2 and X3 are not necessarily distinct.

Determine the respective minimum and maximum positive integer value of M, with M < 100, such that this equation has at least one valid solution.

X1X1 + X2X2 + X3X3 = X1X2X3 - 1

Note: X1X2X3 denotes the 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.)
Solution computer solution Comment 3 of 3 |

DEFDBL A-Z

FOR m = 2 TO 100

FOR x1 = 1 TO m - 1
  v1 = x1 * m * m
  x1p = INT(x1 ^ x1 + .5)
FOR x2 = 1 TO m - 1
  v2 = v1 + x2 * m
  x2p = INT(x2 ^ x2 + .5)
FOR x3 = 1 TO m - 1
  v3 = v2 + x3
  x3p = INT(x3 ^ x3 + .5)

  IF x1p + x2p + x3p = v3 - 1 THEN
    PRINT m, x1; x2; x3, v3
  END IF

NEXT
NEXT
NEXT

NEXT

finds only one solution:

4             3  2  3       59
base representation decimal value

3^3 + 2^2 + 3^3 = 59 - 1 (decimal representation)


  Posted by Charlie on 2009-10-22 18:00:31
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


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

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