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 computer solution | Comment 2 of 8 |
clc
for n=floor(sqrt(100000)):ceil(sqrt(999999))
   s=char(string(n^2));
   a=s(1);
   if isequal(strfind(s,a),[1 2])
     b=s(3);
     if isequal(strfind(s,b),[3 5]);
       c=s(4);
       if isequal(strfind(s,c),[4 6]);
         disp([n n^2])
       end
     end
   end
end

finds

          n         n^2
         478      228484
         577      332929
         881      776161

  Posted by Charlie on 2022-11-26 09:06:15
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