OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,1,1).
FORMULA
a(n) = a(n-1) + a(n-2) + a(n-3) + a(n-4).
G.f.: x*(1 + 7*x + 18*x^2 + 28*x^3) / (1 - x - x^2 - x^3 - x^4). - Colin Barker, Jan 28 2020
MATHEMATICA
a[1] = 1; a[2] = 8; a[3] = 27; a[4] = 64; a[n_] := a[n] = a[n - 1] + a[n - 2] + a[n - 3] + a[n - 4]; Table[ a[n], {n, 31}] (* Robert G. Wilson v, May 11 2004 *)
LinearRecurrence[{1, 1, 1, 1}, Range[4]^3, 40] (* Harvey P. Dale, Apr 18 2018 *)
PROG
(PARI) Vec(x*(1 + 7*x + 18*x^2 + 28*x^3) / (1 - x - x^2 - x^3 - x^4) + O(x^35)) \\ Colin Barker, Jan 28 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jun Mizuki (suzuki32(AT)sanken.osaka-u.ac.jp), May 11 2004
EXTENSIONS
More terms from Robert G. Wilson v and Labos Elemer, May 11 2004
STATUS
approved