OFFSET
0,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
L. Naughton, G. Pfeiffer, Integer Sequences Realized by the Subgroup Pattern of the Symmetric Group, J. Int. Seq. 16 (2013) #13.5.8
FORMULA
a(n) = -Sum_{d|n, d<n} moebius(n/d)*A000041(d) = A000041(n) - A000837(n). - Vladeta Jovovic, Jun 17 2003
MAPLE
with(numtheory): with(combinat):
a:= n-> `if`(n=0, 0,
numbpart(n) -add(mobius(n/d)*numbpart(d), d=divisors(n))):
seq(a(n), n=0..100); # Alois P. Heinz, Nov 29 2011
MATHEMATICA
A000837[n_] := Sum[ MoebiusMu[n/d]*PartitionsP[d], {d, Divisors[n]}]; a[0] = 0; a[n_] := PartitionsP[n] - A000837[n]; Table[a[n], {n, 0, 66}] (* Jean-François Alcover, Oct 03 2013, after Vladeta Jovovic *)
PROG
(PARI) a(n) = - sumdiv(n, d, (d<n)*moebius(n/d)*numbpart(d)); \\ Michel Marcus, Oct 07 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved