OFFSET
3,1
COMMENTS
a(n) is the (n-1)-th centered n-gonal number. The n-th centered n-gonal number is A100119(n) and the (n+1)-th centered n-gonal number is A158842(n). - Mohammed Yaseen, Jun 06 2021
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = (n^3 - n^2 + 2)/2.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4), with a(3)=10, a(4)=25, a(5)=51, a(6)=91. - Harvey P. Dale, Aug 19 2011
G.f.: x^3*(-3*x^3 + 11*x^2 - 15*x + 10)/(x-1)^4. - Harvey P. Dale, Aug 19 2011
EXAMPLE
a(4) = 25 is both square and centered square.
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {10, 25, 51, 91}, 50] (* or *) Table[(n^3-n^2+ 2)/2, {n, 3, 50}] (* Harvey P. Dale, Aug 19 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David W. Wilson, Jul 09 2002
STATUS
approved