OFFSET
1,3
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-3,-6,10,-4).
FORMULA
a(n) = 2^n - n - 1 - ((-1)^n - 1)*2^(1/2*n)*sqrt(2)/4.
a(n) = 4*a(n-1) - 3*a(n-2) - 6*a(n-3) + 10*a(n-4) - 4*a(n-5) for n>5. - Colin Barker, May 18 2019
MATHEMATICA
CoefficientList[Series[(-1+3x-5x^2+4x^3)/((1-2x)(2x^2-1)(x-1)^2), {x, 0, 40}], x] (* or *) LinearRecurrence[ {4, -3, -6, 10, -4}, {1, 1, 6, 11, 30}, 40] (* Harvey P. Dale, Aug 11 2023 *)
PROG
(PARI) Vec(x*(1 - 3*x + 5*x^2 - 4*x^3) / ((1 - x)^2*(1 - 2*x)*(1 - 2*x^2)) + O(x^40)) \\ Colin Barker, May 18 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Creighton Dement, Feb 21 2006
STATUS
approved