login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A187890
a(1) = 0, a(2) = 4, a(n) = a(n-1) + a(n-2) - 1.
5
0, 4, 3, 6, 8, 13, 20, 32, 51, 82, 132, 213, 344, 556, 899, 1454, 2352, 3805, 6156, 9960, 16115, 26074, 42188, 68261, 110448, 178708, 289155, 467862, 757016, 1224877, 1981892, 3206768, 5188659, 8395426, 13584084, 21979509, 35563592, 57543100
OFFSET
1,2
FORMULA
G.f.: -x^2*(-4+5*x) / ( (x-1)*(x^2+x-1) ). - R. J. Mathar, Mar 15 2011
a(n) = 1+A001060(n-2), n>2. - R. J. Mathar, Mar 15 2011
a(n) - a(n-1) = A013655(n-4). - R. J. Mathar, Jun 19 2021
If we start the sequence 1, 3, 6, ... and set the offset to 0, then the sequence has the generating function (1 + x - 3*x^3)/(x^3 - 2*x + 1) and gives the row sums of A374438. - Peter Luschny, Jul 22 2024
MATHEMATICA
Join[{a = 0, b = 4}, Table[c = a+b-1; a=b; b=c, {n, 100}]]
LinearRecurrence[{2, 0, -1}, {0, 4, 3}, 40] (* Harvey P. Dale, Sep 25 2013 *)
CoefficientList[Series[(-x (-4 + 5 x))/((x - 1) (x^2 + x - 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Sep 26 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Definition adapted to offset by Georg Fischer, Jun 19 2021
STATUS
approved