OFFSET
0,2
COMMENTS
Terms and formula from Max Alekseyev and Robert Israel.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
a(n) = 100*n - 212 for n>=4.
From G. C. Greubel, Oct 17 2016: (Start)
a(n) = 2*a(n-1) - a(n-2), for n >= 4.
G.f.: (1 + 4*x + 22*x^2 + 35*x^3 + 31*x^4 + 7*x^5)/(1-x)^2.
E.g.f.: (1/6)*( 1278 + 708*x + 135*x^2 + 7*x^3 - 24*(53 - 25*x)*exp(x) ). (End)
MATHEMATICA
Join[{1, 6, 33, 95}, LinearRecurrence[{2, -1}, {188, 288}, 25]] (* or *) Join[{1, 6, 33, 95}, Table[100*n -212, {n, 4, 25}]] (* G. C. Greubel, Oct 17 2016 *)
PROG
(PARI) a(n)=if(n>3, 100*n-212, [1, 6, 33, 95][n+1]) \\ Charles R Greathouse IV, Jun 23 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Feb 20 2008
EXTENSIONS
Extended by Max Alekseyev, Mar 04 2009
STATUS
approved