OFFSET
0,3
COMMENTS
Exponents are prime numbers in decreasing order.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (6, -15, 20, -15, 6, -1).
FORMULA
a(n) = n^5 - n^3 - n^2.
G.f.: x*(-1 +26*x + 72*x^2 + 22*x^3 + x^4)/(1-x)^6. - R. J. Mathar, Nov 14 2007
a(n) = 6*a(n-1) -15*a(n-2) +20*a(n-3) -15*a(n-4) +6*a(n-5) -a(n-6), with a(0)=0, a(1)=-1, a(2)=20, a(3)=207, a(4)=944, a(5)=2975. - Harvey P. Dale, Jul 23 2011
EXAMPLE
a(7)=16415 because 7^5=16807, 7^3=343, 7^2=49 and we can write 16807-343-49=16415.
MATHEMATICA
Table[n^5-n^3-n^2, {n, 0, 40}] (* or *) LinearRecurrence[ {6, -15, 20, -15, 6, -1}, {0, -1, 20, 207, 944, 2975}, 41] (* Harvey P. Dale, Jul 23 2011 *)
PROG
(Magma) [n^5-n^3-n^2: n in [0..50]]; // Vincenzo Librandi, Dec 15 2010
(PARI) for(n=0, 50, print1(n^5 - n^3 - n^2, ", ")) \\ G. C. Greubel, Oct 20 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Omar E. Pol, Nov 01 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 15 2010
STATUS
approved