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

Home > Just Math
Special Numbers (Posted on 2004-04-03) Difficulty: 2 of 5
There exists a number oddity with 3 different 4-digit numbers. One is 9801, where (98 + 01)^2 = 9801. It also works with 3025: (30+25)^2 = 3025.
What is the other number?
What is the smallest 6-digit number that would work?
(in other words, in a 6-digit number abcdef: abcdef=(abc+def)^2)

See The Solution Submitted by Victor Zapana    
Rating: 3.6667 (6 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution | Comment 9 of 18 |

This simple QBasic code finds all the numbers very quickly:

PRINT "Solutions for 4 digits:"

FOR i% = 1000 TO 9999

IF (INT(i% / 100) + (i% - (INT(i% / 100) * 100))) * (INT(i% / 100) + (i% - (INT(i% / 100) * 100))) = i% THEN
PRINT i%
END IF

NEXT i%

PRINT "Solutions for 6 digits:"

FOR i& = 100000 TO 999999

IF (INT(i& / 1000) + (i& - (INT(i& / 1000) * 1000))) * (INT(i& / 1000) + (i& - (INT(i& / 1000) * 1000))) = i& THEN
PRINT i&
END IF

NEXT i&

And the output:

Solutions for 4 digits:
 2025
 3025
 9801
Solutions for 6 digits:
 494209
 998001

 

 


  Posted by Guilherme on 2004-05-16 11:42:37
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (22)
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