OFFSET
1,10
LINKS
James C. McMahon, Table of n, a(n) for n = 1..10000
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
Juri-Stepan Gerasimov, Oct 14 2025
STATUS
approved
