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.)
soln | Comment 1 of 5

         588        2353

        2353        9412

(2353 seems somehow special...)


unremarkable code:


        program ii

          do i=1,9998

                do j=i,9999

                k=i**2+j**2

                ij=10000*i+j

                ji=10000*j+i

                if(ij.eq.k.or.ji.eq.k)print*,i,j

                enddo

           enddo

        end

Edited on December 1, 2020, 9:03 am
  Posted by Steven Lord on 2020-12-01 08:59:35

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