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

Home > Just Math
Add 1, get a square (Posted on 2008-07-17) Difficulty: 3 of 5
By adding 1 to the non leading zeros number N = AAABBBCCC, it becomes a square. Find N.

A, B, and C are different digits.

Note: While a solution is trivial with the aid of a computer program, show how to derive it without one.

See The Solution Submitted by pcbouhid    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Trivia - and reflection on earlier comments | Comment 3 of 4 |
Having seen this prior to publication, and realising the futility of a spreadsheet, I compiled the program listing below (QuickBasic) and passed it on.

That we might see how computer power may resolve issues, and it is not to be derided, I am glad that pcbouhid's note reads as it does. 

I trust that those yet without this knowledge can benefit from the insights brought by Dej Mar and K Senguptna from their discipline base.

----------------------------------------------------------------------
CLS
FOR a = 0 TO 9
 FOR b = 0 TO 9
  FOR c = 0 TO 9
     IF (a <> b AND b <> c AND a <> c) THEN
       N = a * 10 ^ 8 + a * 10 ^ 7 + a * 10 ^ 6 + b * 10 ^ 5 + b * 10 ^ 4 + b * 10 ^ 3 + c * 10 ^ 2 + c * 10 + c
       IF SQR(N + 1) = INT(SQR(N + 1)) THEN PRINT a, b, c
     END IF
 NEXT
 NEXT
 NEXT
-------------------------------------
This gave me:
 0, 1, 5
 0, 4, 8 and
 1, 9, 8
-----------------------------------------
I could have gotten just the one result by starting "a" at 1 rather than 0.
  Posted by brianjn on 2008-07-18 00:35:17
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 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information