OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
For n > 3, a(n) = n^6 + 6n^4 + 15n^2 + 20. [Charles R Greathouse IV, Dec 27 2011]
G.f.: x*(64-204*x+1007*x^2-821*x^3+1017*x^4-455*x^5+125*x^6-15*x^7+3*x^8-x^9)/(1-x)^7. - Vincenzo Librandi, Dec 18 2014
MATHEMATICA
Table[Floor[(n + 1/n)^6], {n, 40}] (* T. D. Noe, Dec 27 2011 *)
CoefficientList[Series[(64 - 204 x + 1007 x^2 - 821 x^3 + 1017 x^4 - 455 x^5 + 125 x^6 - 15 x^7 + 3 x^8 - x^9) / (1 - x)^7, {x, 0, 40}], x] (* Vincenzo Librandi, Dec 18 2014 *)
PROG
(Magma) [Floor((n+1/n)^6): n in [1..40]]
(PARI) a(n)=if(n>3, n^6+6*n^4+15*n^2+20, [64, 244, 1371][n]) \\ Charles R Greathouse IV, Dec 27 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 18 2011
STATUS
approved