OFFSET
1,1
COMMENTS
The corresponding values for odd n are all zero, since then 2 is a common divisor of (d-1,n/d-1).
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10080
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537
MATHEMATICA
a[n_] := DivisorSum[2*n, 1 &, CoprimeQ[#-1, 2*n/#-1] &]; Array[a, 100] (* Amiram Eldar, Apr 23 2024 *)
PROG
(PARI) a(n)=local(d, r); r=0; d=divisors(2*n); for(k=1, #d, if(gcd(d[k]-1, 2*n\d[k]-1)==1, r++)); r
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, Aug 04 2009
STATUS
approved