OFFSET
0,2
COMMENTS
Partial sums of A272642. - Wolfdieter Lang, May 06 2016
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,0,-1,-1).
FORMULA
G.f.: (1 + x - x^2 - x^3 - x^4)/((1 - x)*(1 - x - 2*x^2 - 2*x^3 - x^4)).
a(n) = 2*a(n-1) + a(n-2) - a(n-4) - a(n-5).
a(n) = floor(phi*a(n-1) + phi*a(n-2)), a(0)=1, a(1)=3, where phi is the golden ratio (A001622).
Lim_{n->infinity} a(n)/a(n-1) = 2/(sqrt(2*sqrt(5)-1) - 1) = sqrt(phi + phi*sqrt(phi + phi*sqrt(phi + ...))) = A189970.
Lim_{n->infinity} a(n-1)/a(n) = (sqrt(2*sqrt(5)-1) - 1)/2 = 1 + A190157.
MATHEMATICA
LinearRecurrence[{2, 1, 0, -1, -1}, {1, 3, 6, 14, 32}, 34]
RecurrenceTable[{a[n] == Floor[GoldenRatio a[n - 1] + GoldenRatio a[n - 2]], a[0] == 1, a[1] == 3}, a, {n, 33}]
CoefficientList[Series[(1 + x - x^2 - x^3 - x^4)/((1 - x) (1 - x - 2 x^2 - 2 x^3 - x^4)), {x, 0, 50}], x] (* Vincenzo Librandi, May 08 2016 *)
PROG
(PARI) Vec((1+x-x^2-x^3-x^4)/(1-2*x-x^2+x^4+x^5) + O(x^99)) \\ Altug Alkan, Apr 27 2016
(Magma) I:=[1, 3, 6, 14, 32]; [n le 5 select I[n] else 2*Self(n-1)+Self(n-2)-Self(n-4)-Self(n-5): n in [1..30]]; // Vincenzo Librandi, May 08 2016 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Apr 27 2016
STATUS
approved