OFFSET
1,1
COMMENTS
How is this different from A034105? - N. J. A. Sloane, Mar 30 2007
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,1,-2,1).
FORMULA
a(n) ~ n^2. - Charles R Greathouse IV, May 29 2026
EXAMPLE
358, 359 and 360 are a run of 3 numbers in A034105, so 358 is in this sequence, but 359 and 360 are not. - R. J. Mathar, Jul 21 2020
MATHEMATICA
Join[{35}, Select[Partition[Select[Range[3000], NumberDigit[Sqrt[#], -1] == 9&], 2, 1], (#[[2]]-#[[1]]!=1&)][[All, 2]]] (* or *) LinearRecurrence[{2, -1, 0, 0, 1, -2, 1}, {35, 48, 63, 80, 99, 119, 142}, 50] (* Harvey P. Dale, Aug 14 2021 *)
PROG
(PARI) a(n)=(5*n^2+49*n+[125, 121, 122, 123, 124][n%5+1])/5 \\ Charles R Greathouse IV, May 29 2026
CROSSREFS
KEYWORD
nonn,base,easy,changed
AUTHOR
Patrick De Geest, Sep 15 1998
STATUS
approved
