OFFSET
1,4
COMMENTS
a(n) = 0 for multiply-perfect numbers (A007691).
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
EXAMPLE
For n = 12, a(12) = 3; sigma(12) = 28, divisors of 12: 1, 2, 3, 4, 6, 12; d does not divide sigma(n) for 3 divisors d: 3, 6 and 12.
MAPLE
A173438 := proc(n)
local sd, a;
sd := numtheory[sigma](n) ;
a := 0 ;
for d in numtheory[divisors](n) do
if modp(sd, d) <> 0 then
a := a+1 ;
end if;
end do:
a;
end proc: # R. J. Mathar, Oct 26 2015
MATHEMATICA
Table[DivisorSum[n, 1 &, ! Divisible[DivisorSigma[1, n], #] &], {n, 98}] (* Michael De Vlieger, Oct 08 2017 *)
PROG
(PARI) A173438(n) = (numdiv(n) - numdiv(gcd(sigma(n), n))); \\ (See PARI-code in A073802) - Antti Karttunen, Oct 08 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Feb 18 2010
STATUS
proposed