Find all odd solutions for $n$ for which $3n^2+8$ is equal to a number in base $10$ which is formed by only one digit(e.g.-$222,8888888,4,99$ etc.)
My approach:-
Let $3n^2+8=...mmmmmm...$($k$ digits)
Applying 'Sum of GP',
$$\frac{m(10^k-1)}{9}=3n^2+8$$
$$m×10^k=27n^2+72+m$$
Now, if $n$ is odd, $27n^2+72$ can have $5,7,9$ as last digits. Now I can look into what can be the last digits of $m$ and analyse further, but only with the help of somebody.

Let $k$, $m$ and $n$ be positive integers with $m$ less than $10$ and $n$ odd, such that $$3n^2+8=m\frac{10^k-1}{9}.$$ The above can be rewritten as $$27n^2+72+m=10^km.$$ A routine check shows that only solution with $k\leq2$ is $(k,m,n)=(2,1,1)$, so suppose $k>2$. Then $10^k\equiv0\pmod{8}$ and $n^2\equiv1\pmod{8}$ because $n$ is odd, so reducing the above mod $8$ shows that $m\equiv5\pmod{8}$, and hence $m=5$. This leaves us with $k$ and $n$ such that $$27n^2+77=5\cdot10^k.$$ Reducing mod $7$ shows that $6n^2\equiv5\cdot3^k\pmod{7}$, from which it follows that $k$ is even, say $k=2\ell$, because $3$, $5$ and $6$ are not squares mod $7$. Then in $\Bbb{Z}[\alpha]:=\Bbb{Z}[X]/(X^2-15)$ we have $$(9n-10^\ell\alpha)(9n+10^\ell\alpha)=3\cdot(27n^2-5\cdot10^k)=-3\cdot77.$$ Unfortunately $\Bbb{Z}[\alpha]$ is not a unique factorization domain, but of course it is a Dedekind domain, where the ideals $(3)$, $(7)$ and $(11)$ factor into prime ideals as follows: $$(3)=(3,\alpha)^2\qquad (7)=(7,1+\alpha)(7,1-\alpha)\qquad (11)=(2+\alpha)(2-\alpha).$$ This yields the identity of ideals $$(9n-10^\ell\alpha)(9n+10^\ell\alpha) =(3,\alpha)^2(7,1+\alpha)(7,1-\alpha)(2+\alpha)(2-\alpha).$$ As the two factors on the left hand side are conjugate, each must contain precisely one prime factor of $(3)$, $(7)$ and $(11)$. So the ideals $(9n\pm10^\ell\alpha)$ are one of the two conjugate pairs of ideals \begin{eqnarray*} (3,\alpha)(7,1\pm\alpha)(2\pm\alpha)&=&(3\mp4\alpha),\\ (3,\alpha)(7,1\pm\alpha)(2\mp\alpha)&=&(27\mp8\alpha). \end{eqnarray*} This means that there is a unit $u\in\Bbb{Z}[\alpha]^{\times}$ such that either $$9n+10^\ell\alpha=u\cdot(3\pm4\alpha) \qquad\text{ or }\qquad 9n+10^\ell\alpha=u\cdot(27\pm8\alpha).$$ Knowing Dirichlets unit theorem it is not hard to check that $\Bbb{Z}[\alpha]^{\times}=\langle-1,4+\alpha\rangle$. So first suppose that for some $b\in\Bbb{Z}$ we have $$9n+10^\ell\alpha=\pm(4+\alpha)^b(27\pm8\alpha)\label{1}\tag{1}.$$ Identifying $\alpha$ with $\sqrt{15}$ we see that $$9n+10^{\ell}\sqrt{15}>0\qquad\text{ and }\qquad 27-8\sqrt{15}<0,$$ so the two $\pm$-signs in (\ref{1}) take the same value. Reducing equation (\ref{1}) mod $3$, i.e. evaluating in $\Bbb{F}_3[\varepsilon]$ with $\varepsilon^2\equiv15\equiv0$, we find that $$\pm(4+\varepsilon)^b(27\pm8\varepsilon) \equiv\pm(1+\varepsilon)^b(0\pm2\varepsilon) \equiv2\varepsilon, \qquad\text{ and }\qquad 9n+10^\ell\varepsilon\equiv\varepsilon$$ a contradiction. Then there must be some $b\in\Bbb{Z}$ such that $$9n+10^\ell\alpha=\pm(4+\alpha)^b(3\pm4\alpha).$$ Now reducing mod $8$, i.e. evaluating in the ring $(\Bbb{Z}/8\Bbb{Z})[i]$ with $i^2\equiv15\equiv-1$, we find that $$\pm(4+i)^b(3\pm4i) \equiv\pm(i^b+4bi^{b-1})(3\pm4i) \equiv\pm(3i^b+4bi^{b-1}\pm4i^{b+1}),$$ and $9n+10^{\ell}i\equiv n+2^{\ell}i$. If $b$ is odd then $i^{b+1}\equiv-i^{b-1}\equiv\pm1$ and we find that $$n\equiv\pm(4bi^{b-1}\pm4i^{b+1})\equiv\pm4(4b\pm1) \qquad\text{ and }\qquad 2^a\equiv\pm3i^{b-1}\equiv\pm3.$$ Both are impossible as $n$ is odd and $2^a\equiv0,1,2,4$. So $b$ is even and hence $$n\equiv\pm3i^b\equiv\pm3 \qquad\text{ and }\qquad 2^a\equiv4i^b\pm4bi^{b-2}\equiv4i^b\equiv4.$$ This shows that $a=2$, and so $k=4$. Hence the only solution with $k>2$ is $(k,m,n)=(4,5,43)$.