Never ask a girl her age

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?


The answer is 19.

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.

1 solution

Let p p be the age

Then p = 10 x + y p=10x+y , where x , y [ 0 , 9 ] x,y \in [0,9]

and p 2 = 100 x 2 + 10 x y + y 2 p^2=100x^2+10xy+y^2 = 10 ( 10 x 2 + x y ) + y 2 =10(10x^2+xy)+y^2

since the last digit of p 2 p^2 (which is the last digit of y 2 y^2 ) equals to the first digit of p p (which is x x ) we find that x y 2 ( m o d 10 ) x \equiv y^2 \pmod{10} , and we can set this table:

y y 0 1 2 3 4 5 6 7 8 9
x y 2 ( m o d 10 ) x \equiv y^2 \pmod{10} 0 1 4 9 6 5 6 9 4 1

and we can see that p 0 , 11 , 42 , 93 , 64 , 55 , 66 , 97 , 48 , 19 p \in 0,11,42,93,64,55,66,97,48,19

but since p p is a prime number, we find that p 11 , 97 , 19 p \in 11,97,19

1 1 2 = 121 11^2=121 , and 12 is not a perfect square

9 7 2 = 9409 97^2=9409 , and 94 is not a perfect square

1 9 2 = 361 19^2=361 , and since 36 is a perfect square, the solution is 19 \boxed{19}

If I had her number, I would have definitely given it to you. ;)

Abhay Tiwari - 5 years, 1 month ago

Log in to reply

Why can't it be 5?

5 is a prime number

5 + 4 (a perfect square) = 9 (a perfect square)

5 2 5^{2} = 25... first 2 digits are 25 which is also a perfect square

The last digit of 25 is 5, which is equal to the first digit of 5

Finn C - 5 years ago

Log in to reply

Finn c, The girl already said that her age is a t w o d i g i t two \space digit prime number. So, she cannot be 5.

Abhay Tiwari - 5 years ago

Log in to reply

@Abhay Tiwari Oh yah... nice question!

Finn C - 5 years ago

Log in to reply

@Finn C Thanks a lot :)

Abhay Tiwari - 5 years ago

Log in to reply

@Abhay Tiwari Imagine if it was 97! You'd be on a date with an old women!

Finn C - 5 years ago

Log in to reply

@Finn C Ha ha, I may do that 70 years from now :D. But, for now 17 is a better option I guess ;)

Abhay Tiwari - 5 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...