OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
R. Zumkeller, Enumerations of Divisors
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = C(n,0) + 2*C(n,1) + 8*C(n,3).
G.f.: (1-x-x^2+9*x^3)/(1-x)^4. - Colin Barker, Jan 08 2012
EXAMPLE
Differences of divisors of 15 to compute the coefficients of their interpolating polynomial, see formula:
1 3 5 15
2 2 10
0 8
8
MAPLE
A161703:=n->(4*n^3 - 12*n^2 + 14*n + 3)/3: seq(A161703(n), n=0..100); # Wesley Ivan Hurt, Jul 16 2017
MATHEMATICA
CoefficientList[Series[(1 - x - x^2 + 9*x^3)/(1 - x)^4, {x, 0, 50}], x] (* G. C. Greubel, Jul 16 2017 *)
LinearRecurrence[{4, -6, 4, -1}, {1, 3, 5, 15}, 50] (* Harvey P. Dale, Oct 04 2024 *)
PROG
(Magma) [(4*n^3 - 12*n^2 + 14*n + 3)/3: n in [0..50]]; // Vincenzo Librandi, Dec 27 2010
(PARI) a(n)=n*(4*n^2-12*n+14)/3+1 \\ Charles R Greathouse IV, Sep 24 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Jun 17 2009
STATUS
approved