OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
From Bruno Berselli, Oct 17 2011: (Start)
G.f.: x*(16-41*x+88*x^2-59*x^3+21*x^4-x^6)/(1-x)^5.
a(n) = (n^2+2)^2+2 for n>2, a(1)=16, a(2)=39.
a(n) = 5*a(n-1)-10*a(n-2)+10*a(n-3)-5*a(n-4)+a(n-5) for n=6 and n>7.
MATHEMATICA
Table[Floor[(n+1/n)^4], {n, 50}] (* Harvey P. Dale, Jun 03 2015 *)
(* Alternative: *)
LinearRecurrence[{5, -10, 10, -5, 1}, {16, 39, 123, 326, 731, 1446, 2603}, 50] (* Harvey P. Dale, Jun 03 2015 *)
PROG
(Magma) [Floor((n+1/n)^4): n in [1..60]];
(PARI) a(n)=floor((n+1/n)^4) \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 17 2011
STATUS
approved
