OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3, -3, 1).
FORMULA
a(n) = 1+(1729/2)*n+(1729/2)*n^2.
MAPLE
a:= n-> 1+(1729/2)*n*(1+n):
seq(a(n), n=0..35); # Alois P. Heinz, Jul 16 2013
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {1, 1730, 5188}, 40] (* or *) Table[1+(1729/2)n(n+1), {n, 0, 40}] (* Harvey P. Dale, May 22 2017 *)
PROG
(PARI) a(n) = 1 + (1729/2)*n + (1729/2)*n^2 \\ Michel Marcus, Jul 16 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 06 2007, based on a suggestion from Anton Mravcek in 2004.
STATUS
approved