One day, I had a boring date. But just then:
I asked her, "What's your age by the way?"
She replied, "Oh, it's a two digit prime number which when added to a square, forms a new perfect square .
I said, "Ok, but there are many prime numbers like that!"
She replied, "The first 2 digits of the square of my age form a perfect square, and the last digit of the square of my age is equal to the first digit of my age."
That's some interesting conversation now. What was the minimum age of the girl?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let p be the age
Then p = 1 0 x + y , where x , y ∈ [ 0 , 9 ]
and p 2 = 1 0 0 x 2 + 1 0 x y + y 2 = 1 0 ( 1 0 x 2 + x y ) + y 2
since the last digit of p 2 (which is the last digit of y 2 ) equals to the first digit of p (which is x ) we find that x ≡ y 2 ( m o d 1 0 ) , and we can set this table:
and we can see that p ∈ 0 , 1 1 , 4 2 , 9 3 , 6 4 , 5 5 , 6 6 , 9 7 , 4 8 , 1 9
but since p is a prime number, we find that p ∈ 1 1 , 9 7 , 1 9
1 1 2 = 1 2 1 , and 12 is not a perfect square
9 7 2 = 9 4 0 9 , and 94 is not a perfect square
1 9 2 = 3 6 1 , and since 36 is a perfect square, the solution is 1 9