OFFSET
1,2
COMMENTS
See link for corrections to table in Ask Dr. Math link.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Ask Dr. Math, Finding Rhombi in a Rhombus, Source, about 2/3rds down, message dated 01/18/2000.
Ray Chandler, Corrections to table in Ask Dr. Math link.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: x*(1 + 5*x - 4*x^2)/(1-x)^4. - Colin Barker, May 09 2012
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Vincenzo Librandi, Jun 22 2012
MATHEMATICA
Table[n*(n+1)*(2n+1)/6+2n*(n-1), {n, 50}] (* Ray Chandler, May 05 2011 *)
LinearRecurrence[{4, -6, 4, -1}, {1, 9, 26, 54}, 40] (* Vincenzo Librandi, Jun 22 2012 *)
PROG
(Magma) I:=[1, 9, 26, 54]; [n le 4 select I[n] else 4*Self(n-1)-6*Self(n-2)+4*Self(n-3)-Self(n-4): n in [1..40]]; // Vincenzo Librandi, Jun 22 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Tom Gray (TGray9278(AT)aol.com), Jan 24 2000
EXTENSIONS
Better description from Larry Reeves (larryr(AT)acm.org), Mar 21 2001
Corrected and extended by Ray Chandler, May 05 2011
STATUS
approved