OFFSET
2,1
COMMENTS
This is r(n,2,2) in Alter's notation.
LINKS
Paolo Xausa, Table of n, a(n) for n = 2..1000
Ronald Alter, Computations and generalizations on a remark of Ramanujan, pp. 182-196 of "Analytic Number Theory (Philadelphia, 1980)", ed. M. I. Knopp, Lect. Notes Math., Vol. 899, 1981. See Eq. (15), page 188.
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = n + 15 for n >= 5.
From Elmo R. Oliveira, Jul 09 2026: (Start)
a(n) = 2*a(n-1) - a(n-2) for n >= 7.
G.f.: x^2*(50 - 73*x + 24*x^2 - 9*x^3 + 9*x^4)/(1 - x)^2.
E.g.f.: exp(x)*(x + 15) + (3*x^4 + 12*x^3 + 132*x^2 - 128*x - 120)/8. (End)
EXAMPLE
a(2) = 50 = 1+49 = 25+25.
a(3) = 27 = 1+1+25 = 9+9+9.
a(5) = 20 = 1+1+1+1+16 = 4+4+4+4+4.
MATHEMATICA
Join[{50, 27, 28}, Range[20, 100]] (* Paolo Xausa, Feb 09 2026 *)
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
N. J. A. Sloane, Apr 03 2021
STATUS
approved
