I've found some solutions for this questions but they were not impressive.


How many natural numbers are there in base $10$,whose last digit is perfect square,combination of last two digits is a perfect square,combination of last three digits is a perfect square,$\ldots$,combination of last $n$ digits is a perfect square?

For example $64$ is a number whose last digit is a perfect square and combination of last two digits is also a perfect square.

Kindly tell me how to approach this question.

  • 4
    $\begingroup$ There are infinitely many such numbers. Here are some of them: $10^2,10^4,10^6,\dots$ $\endgroup$ – barak manos Dec 5 '16 at 10:35
  • $\begingroup$ Try to write on a piece of paper some perfect squares, select those satisfying this property and look for a pattern. $\endgroup$ – Crostul Dec 5 '16 at 10:35
  • $\begingroup$ I've done the same as suggested by crostul when I left the cases of number having only 0 & 1 as their digits. $\endgroup$ – Atul Mishra Dec 5 '16 at 10:37
  • $\begingroup$ Your question starts with "How many natural numbers are there..." - well, there are infinitely many. What more do you want? $\endgroup$ – barak manos Dec 5 '16 at 10:38
  • $\begingroup$ I want other than those numbers you have suggested, please,,,, $\endgroup$ – Atul Mishra Dec 5 '16 at 10:39

Answers are in the forms:-







Where $n \in 0,2,4,6...$

| cite | improve this answer | |
  • $\begingroup$ I beg your pardon? $\endgroup$ – Alex M. Dec 6 '16 at 15:05
  • $\begingroup$ It's hard to understand what you mean (and you're wrong). $\endgroup$ – Henrik supports the community Dec 6 '16 at 15:50
  • $\begingroup$ But I think these are the only possible solutions $\endgroup$ – Harsh Kumar Dec 6 '16 at 15:58
  • $\begingroup$ What about $900$? $\endgroup$ – Henrik supports the community Dec 6 '16 at 15:58
  • 1
    $\begingroup$ 900=9*10^2 @Henrik $\endgroup$ – Vidyanshu Mishra Dec 6 '16 at 16:06

Let us start without accepting trailing zeroes.

And let us then start by looking at last (least significant) digits.

As the last digit has to be a perfect square, it has to be $1$, $4$ or $9$.

Going to two digits, the above criterion, limits the number of candidates to $9\cdot 3 = 27$. Comparing those to a list of perfect sqaures, gives three numbers: $49$, $64$ and $81$.

If we go to three digits we again only have $27$ candidates, none of which are perfect squares.

So without trailing zeroes, there are six such numbers.

As $(ab)^2=a^2b^2$, it's clear that multiplying any two squares we get another square, and since multiplying by $10^n$ just adds $n$ zeroes to a number, we can multiply each of those six numbers by $10^{2n}$ for any $n\in\mathbb N$. Giving us all the solutions to the problem.

| cite | improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.