Finding the smallest n such that \(\displaystyle{n}^{{{2}}}\)

Zane Decker

Zane Decker

Answered question

2022-04-05

Finding the smallest n such that n2 ends with 00001
The problem is to find the smallest natural number n so that its square's last 5 digits are 00001. n and n2 cannot begin with 0.

Answer & Explanation

Kaitlynn Craig

Kaitlynn Craig

Beginner2022-04-06Added 13 answers

Step 1
You want to find n such that n21±mod105
By Chinese remainder theorem, this is equivalent to
n21±mod25 and n21±mod55
We have
n21±mod25n±1±mod24
and
n21±mod55n±1±mod55.
Again by Chinese remainder theorem, these congruence relations give four possibilities of nmod5104, namely
n1,18751,31249,49999±mod50000.
From here, we see that the smallest such n is 18751.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?