OFFSET
0,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
Watson, G. N., Ramanujans Vermutung ueber Zerfaellungsanzahlen. J. Reine Angew. Math. (Crelle), 179 (1938), 97-128.
FORMULA
See Maple code in A160525 for formula.
Euler transform of period 7 sequence [ -7, -7, -7, -7, -7, -7, -6, ...]. - Alois P. Heinz, Jan 07 2017
EXAMPLE
1-7*x^24+14*x^48+7*x^72-49*x^96+21*x^120+35*x^144+42*x^168-...
MAPLE
with(numtheory):
a:= proc(n) option remember; `if`(n=0, 1, add(add(d*
`if`(irem(d, 7)=0, -6, -7), d=divisors(j))*a(n-j), j=1..n)/n)
end:
seq(a(n), n=0..70); # Alois P. Heinz, Jan 07 2017
MATHEMATICA
a[n_] := a[n] = If[n==0, 1, Sum[DivisorSum[j, #*If[Mod[#, 7]==0, -6, -7]&]* a[n-j], {j, 1, n}]/n]; Table[a[n], {n, 0, 70}] (* Jean-François Alcover, Mar 13 2017, after Alois P. Heinz *)
CROSSREFS
KEYWORD
sign
AUTHOR
N. J. A. Sloane, Nov 14 2009
STATUS
approved