OFFSET
1,3
COMMENTS
Or, numbers k such that k^2, with its last base-9 digit dropped, is again a square. (Except maybe for the 3 initial terms whose square has only 1 digit in base 9.)
LINKS
Sela Fried, Proof of a conjecture stated in A204502, 2025.
M. F. Hasler, Truncated squares, OEIS wiki, Jan 16 2012
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
From Colin Barker, Nov 23 2012: (Start)
a(n) = 3*n - 12 for n > 5.
G.f.: x^2*(x^2+x+1)*(x^3-x+1)/(x-1)^2. (End)
MATHEMATICA
Select[Range[0, 200], IntegerQ[Sqrt[Floor[#^2/9]]]&] (* Harvey P. Dale, May 05 2018 *)
PROG
(PARI) b=9; for(n=0, 200, issquare(n^2\b) & print1(n", "))
CROSSREFS
The squares are in A204503, the squares with last base-9 digit dropped in A204504, and the square roots of the latter in A028310.
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Jan 15 2012
STATUS
approved
