How to find all naturals $n$ such that $\sqrt{1\smash{\underbrace{4\cdots4}_{n\text{ times}}}}$ is an integer?
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|
|
For $n \geq 4$ your number is equal to $4444$ modulo $10000$, and in particular modulo $16$. If it were a square, then $4444$ would be a square modulo $16$, implying $1111$ is a square modulo $4$. But $1111=3$ mod $4$, contradiction. |
|||
|
|
|
Hint: the square root must end in $2$ or $8$ (except for $1$-do you permit no $4$'s?). You can see this by what digit squares end in $4$. You can extend this argument digit by digit, which will terminate by saying that some length of string of $4$'s can't be the end of a square. Then there won't be many possibilities to check. |
||||
|
|