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

Home > Numbers
Special Number (Posted on 2004-06-30) Difficulty: 3 of 5
An integer N consisting of five distinct nonzero digits has the curious property that it is equal to the sum of all the different three-digit integers formed by the three digit permutations of its five digits. Find N.

See The Solution Submitted by np_rt    
Rating: 2.6667 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution re(2): Solution | Comment 4 of 9 |
(In reply to re: Solution by Charlie)

A program implementing the algorithm for solution is:

FOR i = 8 TO 75
  s$ = LTRIM$(STR$(1332 * i))
  t = 0
  FOR j = 1 TO LEN(s$)
   t = t + VAL(MID$(s$, j, 1))
  IF t = i THEN PRINT s$

It needs check only 68 possibilities.  It finds one solution:



  Posted by Charlie on 2004-06-30 09:51:25
Please log in:
Remember me:
Sign up! | Forgot password

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

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information