OFFSET
1,2
COMMENTS
{a(k): 1 <= k <= 4} = divisors of 6. - Reinhard Zumkeller, Jun 17 2009
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..10000
Reinhard Zumkeller, Enumerations of Divisors
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) + n - 2 = {a(n-1) + a(n+1)}/2.
a(n) = (n^3-6*n^2+14*n-6)/3.
Contribution from Bruno Berselli, May 31 2010: (Start)
G.f.: (1-2*x+x^2+2*x^3)/(1-x)^4.
a(n)-4*a(n-1)+6*a(n-2)-4*a(n-3)+a(n-4) = 0 with n>4. For n=9, 121-4*78+6*47-4*26+13 = 0.
EXAMPLE
2 = (1+3)/2 - 0, 3 = (2+6)/2 - 1, 6 = (3+13)/2 - 2, etc.
MATHEMATICA
PROG
(PARI) a(n) = n*(n^2-6*n+14)/3-2 \\ Charles R Greathouse IV, Jun 11 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Jul 29 2003
EXTENSIONS
More terms from David Wasserman, Mar 10 2005
STATUS
approved
