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

Home > Numbers
Taking the 5th (Posted on 2009-05-03) Difficulty: 2 of 5
A5 + B5 + C5 + D5 + E5 = ABCDE

where each separate letter represents a different digit and A is not zero.

What is ABCDE?

  Submitted by Charlie    
Rating: 3.0000 (2 votes)
Solution: (Hide)
CLS
FOR a = 1 TO 9
FOR b = 0 TO 9
FOR c = 0 TO 9
FOR d = 0 TO 9
FOR e = 0 TO 9
  tot = a * a * a * a * a
  tot = tot + b * b * b * b * b
  tot = tot + c * c * c * c * c
  tot = tot + d * d * d * d * d
  tot = tot + e * e * e * e * e
  tot2 = a * 10000 + b * 1000 + c * 100 + d * 10 + e
  IF tot = tot2 THEN PRINT tot2
NEXT
NEXT
NEXT
NEXT
NEXT

gives

 54748
 92727
 93084

By inspection, the one without repeated digits is 93084.

Comments: ( You must be logged in to post comments.)
  Subject Author Date
Puzzle Thoughts K Sengupta2023-05-22 00:16:49
Naught to spareed bottemiller2009-05-04 13:25:06
re: Different signs (good point)Daniel2009-05-03 19:55:37
Some ThoughtsDifferent signsFrankM2009-05-03 19:17:23
This takes me back...Jer2009-05-03 17:24:55
computer solutionDaniel2009-05-03 13:11:47
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 (12)
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