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

Home > Numbers
Concatenation equals Sum of Squares (Posted on 2020-12-01) Difficulty: 3 of 5
Two positive integers, a and b, are of 4 digits or less.

For what (a,b) pairs is it true that the sum of their squares is equal to their concatenation?

No Solution Yet Submitted by Larry    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): soln | Comment 4 of 5 |
(In reply to re(2): soln by Steven Lord)

It used to be that I would concatenate by converting to string, then doing an actual string concatenation and then converting back to numeric. In Visual Basic this didn't carry too much overhead, but I switched to MATLAB and used this method, there was too much overhead (not that this puzzle has that much going on). So I had to get myself used to the changing multiplication factor, so I might as well use it for this. The string conversion method doesn't require thinking about the lengths of the numbers.
  Posted by Charlie on 2020-12-01 14:52: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 (9)
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