login
A389780
Number of divisors d of n such that gcd(d^2 - 1, n) = 1 and gcd((n/d)^2 - 1, n) != 1.
1
0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 3, 1, 2, 1, 2, 1, 1, 1, 1, 2, 2, 1, 3, 1, 2, 2, 3, 1, 1, 1, 2, 1, 2, 1, 4, 1, 3, 2, 2, 1, 3, 2, 1, 2, 2, 1, 3, 1, 2, 2, 1, 1, 2, 1, 2, 2, 3, 1, 4, 1, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 5
OFFSET
1,10
LINKS
MATHEMATICA
a[n_]:=Length[Select[Divisors[n], GCD[#^2-1, n]==1&&GCD[(n/#)^2-1, n]!=1&]]; Array[a, 96] (* James C. McMahon, Oct 27 2025 *)
PROG
(Magma) [#[d: d in Divisors(n) | Gcd(d^2 - 1, n) eq 1 and not Gcd((n div d)^2 - 1, n) eq 1]: n in [1..96]];
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved