OFFSET
0,1
LINKS
T. D. Noe, Table of n, a(n) for n=0..200
Index entries for linear recurrences with constant coefficients, signature (12,-47,72,-36).
FORMULA
a(n) = 1^n + 2^n + 3^n + 6^n.
G.f.: -2*(36*x^3 - 47*x^2 + 18*x - 2) / ((x - 1)*(2*x - 1)*(3*x - 1)*(6*x - 1)). - Colin Barker, Apr 20 2014
MATHEMATICA
a[n_] := (2^n + 1)*(3^n + 1); Table[a[n], {n, 0, 19}] (* Zerinvary Lajos, Mar 25 2007 *)
Total[#^Range[0, 20]&/@Divisors[6]] (* Vincenzo Librandi, Apr 17 2014 *)
PROG
(Sage) [sigma(6, n)for n in range(0, 20)] # Zerinvary Lajos, Jun 04 2009
(PARI) a(n)=6^n+3^n+2^n+1 \\ Charles R Greathouse IV, Apr 28, 2011
(Magma) [DivisorSigma(n, 6): n in [0..20]]; // Vincenzo Librandi, Apr 17 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Apr 20 2014
STATUS
approved