OFFSET
1,2
COMMENTS
Every number gives remainder 29 when divided by 30, remainder 9 when divided by 10, and remainder 4 when divided by 5.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
G.f.: x*(x^5-5*x^4+40*x^3+50*x^2+35*x-1)/(1-x)^6. - Colin Barker, Oct 07 2012
MAPLE
MATHEMATICA
a = {}; Do[AppendTo[a, x^5 - x - 1], {x, 1, 100}]; a
Table[n^5-n-1, {n, 40}] (* or *) LinearRecurrence[{6, -15, 20, -15, 6, -1}, {-1, 29, 239, 1019, 3119, 7769}, 40] (* Harvey P. Dale, Jul 02 2018 *)
PROG
(Magma) [n^5-n-1: n in [1..40]]; // Vincenzo Librandi, Aug 30 2011
(PARI) a(n)=n^5-n-1 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Artur Jasinski, Dec 26 2006
STATUS
approved