If Bill’s age in years is appended
to Alice’s age, the resultant four
digit integer is a perfect square.
The same thing will be true thirteen
years from now. What are Bill’s and
Alice’s ages?
1936 3249
44^2 57^2
If Bill’s age in years is appended to Alice’s age, my interpretation is that Alice's age is listed first followed by Bill's.
So Alice is 19 and Bill is 36 years old.
---------
squares = [n**2 for n in range(32,106)]
for s in squares:
later13 = s + 1313
if later13 in squares:
print(s, later13)
|
Posted by Larry
on 2025-01-26 09:02:09 |