OFFSET
1,2
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = |Union_{k=1..n} divisors(sigma(k))|.
EXAMPLE
The divisors of sigma(1) = 1 are {1}, those of sigma(2) = 3 are {1, 3}, of sigma(3) = 4 are {1, 2, 4}, and of sigma(4) = 7 are {1, 7}. The union of these four sets is {1, 2, 3, 4, 7}, which has a cardinality of 5. Therefore, a(4) = 5.
MAPLE
MATHEMATICA
Module[{d = {}}, Table[Length[d = DeleteDuplicates[Join[d, Divisors[DivisorSigma[1, n]]]]], {n, 100}]] (* Paolo Xausa, Jul 07 2025 *)
PROG
(PARI) a(n) = my(s=Set()); for(k=1, n, s=setunion(s, divisors(sigma(k)))); #s; \\ Michel Marcus, Jul 01 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Jul 01 2025
STATUS
approved