OFFSET
0,2
REFERENCES
James Boswell Instituut, Sequences, 2006, p. 19 (recurrence 1.d).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-10).
FORMULA
G.f.: (1-4*x)/((1-2*x)*(1-5*x)).
a(n) = ( 2^(n+1) + 5^n )/3.
a(n) = 7*a(n-1) - 10*a(n-2) for n>1.
MATHEMATICA
RecurrenceTable[{a[0] == 1, a[n] == 5 a[n - 1] - 2^n}, a, {n, 0, 30}] (* or *) Table[(2^(n + 1) + 5^n)/3, {n, 0, 30}]
PROG
(Magma) [(2^(n+1)+5^n)/3: n in [0..30]];
(PARI) Vec((1-4*x)/((1-2*x)*(1-5*x)) + O(x^50)) \\ Michel Marcus, Sep 13 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Sep 12 2014
STATUS
approved