OFFSET
1,3
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = |divisors(sigma(n)) minus Union_{k=1..n-1} divisors(sigma(k))|.
EXAMPLE
The divisors of sigma(3) = 4 are {1, 2, 4}. Among these, 2 and 4 have not yet been counted in the sequence, so a(3) = 2.
The divisors of sigma(8) = 15 are {1, 3, 5, 15}. Among these, 5 and 15 have not yet been counted in the sequence, so a(8) = 2.
The divisors of sigma(11) = 12 are {1, 12}. Both divisors have already been counted in the sequence (1 in a(1) and 12 in a(6)), so a(11) = 0.
MAPLE
PROG
(PARI) a(n) = my(s=Set()); for(k=1, n-1, s=setunion(s, divisors(sigma(k)))); sumdiv(sigma(n), d, if (!setsearch(s, d), 1)); \\ Michel Marcus, Jul 02 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix Huber, Jul 01 2025
STATUS
approved
