Riddler Express
The two larger squares are congruent, and the smaller square makes a degree angle with one of the larger squares. Both larger squares touch the circle at one corner, while the smaller square touches the circle at two corners.
How many times greater is the area of one of the larger squares than the area of the smaller square?
Solution
Let be the center of the circle, be the length of the side of the larger square and be the length of the side of the smaller square.
We have the following equations:
From the above, we have
Riddler Classic
For some perfect squares, when you remove the last digit, you get another perfect square. For example, when you remove the last digit from ), you get .
The first few squares for which this happens are , , , and . What are the next three squares for which you can remove the last digit and get a different perfect square? How many more can you find?
Extra credit: In the list above, is a little different from the other numbers. Not only when you remove the last digit do you get a perfect square, , but when you remove the last two digits, you again get a perfect square: . Can you find another square with both of these properties?
Computational Solution
from math import sqrt
cnt = 1
for i in range(20, 1000):
if cnt <= 3 and sqrt(int(str(i*i)[:-1])).is_integer():
print(i*i)
cnt += 1
Three more perfect squares that satisfy the conditions of the problem are and .