OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = 1 + n^4 + n^6.
G.f.: x*(3 +60*x +307*x^2 +272*x^3 +81*x^4 -4*x^5 +x^6)/(1-x)^7. - Colin Barker, May 25 2012
MATHEMATICA
Table[1 + n^4 + n^6, {n, 1, 50}] (* G. C. Greubel, Oct 17 2017 *)
LinearRecurrence[{7, -21, 35, -35, 21, -7, 1}, {3, 81, 811, 4353, 16251, 47953, 120051}, 30] (* Harvey P. Dale, May 10 2020 *)
PROG
(PARI) a(n)=1+n^4+n^6 \\ Charles R Greathouse IV, Oct 07 2015
(Magma) [1 + n^4 + n^6: n in [1..25]]; // G. C. Greubel, Oct 17 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Oct 04 2006
STATUS
approved