OFFSET
2,6
COMMENTS
Conjecture: every nonnegative integer occurs infinitely many times.
FORMULA
a(n) = A332886(n) - 2 for n >= 2.
EXAMPLE
Let p(n) = A000041(n) = number of partitions of n. Then p(9) = 30, which is divisible by these 6 partition numbers: p(1) = 1, p(2) = 2, p(3) = 3, p(4) = 5, p(7) = 15, and p(9) = 30; discounting p(1) and p(9) leaves a(9) = 4 proper divisors.
MATHEMATICA
p[n_] := PartitionsP[n]; t[n_] := Table[p[k], {k, 0, n}]
u = -2 + Table[Length[Intersection[t[n], Divisors[p[n]]]], {n, 2, 130}]
PROG
(PARI) a(n) = my(nbp=numbpart(n)); sum(k=2, n-1, (nbp % numbpart(k)) == 0); \\ Michel Marcus, Feb 29 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Feb 29 2020
STATUS
approved