OFFSET
1,12
COMMENTS
a(n) = 0 if n is a prime power. - Charles R Greathouse IV, Aug 20 2015
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(6) = 1 because x = 3, y = 2, x mod y = 1 and 3, 2, 1 are distinct divisors of 6.
PROG
(PARI) a(n)=my(d=divisors(n), x, y, z); sum(i=2, #d-2, y=d[i]; sum(j=i+1, #d-1, x=d[j]; z=x%y; z && n%z==0)) \\ Charles R Greathouse IV, Aug 20 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 19 2015
EXTENSIONS
Corrected and edited by Charles R Greathouse IV, Aug 20 2015
STATUS
approved