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

Home > Numbers
A square 2 (Posted on 2022-11-26) Difficulty: 3 of 5
A number AABCBC is the square of an integer. Find all possible values of AABCBC.

No Solution Yet Submitted by Math Man    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution | Comment 1 of 8
The possible values are:
{228484, 332929, 776161}


---------
def isSquare(n):
    """ Input an integer, Returns True iff it is a perfect square. """
    if round(n**0.5)**2 == n:
        return True
    else:
        return False

for a in range(1,10):
    for b in range(10):
        for c in range(10):
            x = a * 110000 + b * 1010 + c * 101
            if isSquare(x):
                print(x, (x**.5))

Output:
228484 478.0
332929 577.0
776161 881.0

It turns out, for this pattern, the only solutions have A, B, and C distinct

Edited on November 26, 2022, 6:49 am
  Posted by Larry on 2022-11-26 06:48:55

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 (0)
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