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

Home > Just Math
Equal digit sum (Posted on 2012-11-22) Difficulty: 5 of 5
Find all integers n such that S(n) = S(2n) = ... = S(n*n), where S is the sum of the base-10 digits.

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts computer exploration--no proof | Comment 2 of 4 |

DECLARE FUNCTION sod! (x!)
FOR n = 1 TO 9999999
    s = sod(n)
    good = 1
    FOR coef = 2 TO n
        IF sod(coef * n) <> s THEN good = 0: EXIT FOR
    NEXT coef
    IF good THEN PRINT n
NEXT n

FUNCTION sod (x)
n$ = LTRIM$(STR$(x))
t = 0
FOR i = 1 TO LEN(n$)
    t = t + VAL(MID$(n$, i, 1))
NEXT
sod = t
END FUNCTION

finds only

1
9
99
999

Nothing else up to 10 billion.


  Posted by Charlie on 2012-11-22 12:08:45
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 (10)
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