OFFSET
1,1
COMMENTS
Numbers n such that A046072(n) = 2.
Numbers are of the form p^e*q^f, 2*p^e*q^f, 4p^e, or 2^(e+2) where p and q are distinct odd primes and e,f >= 1. - Charles R Greathouse IV, Jan 09 2022
MATHEMATICA
A046072[n_] := Which[n == 1 || n == 2, 1,
OddQ[n], PrimeNu[n],
EvenQ[n] && !Divisible[n, 4], PrimeNu[n] - 1,
Divisible[n, 4] && !Divisible[n, 8], PrimeNu[n],
Divisible[n, 8], PrimeNu[n] + 1];
Select[Range[200], A046072[#] == 2&] (* Jean-François Alcover, Dec 22 2021, after Geoffrey Critzer in A046072 *)
PROG
(PARI) for(n=1, 10^3, my(t=#(znstar(n)[2])); if(t==2, print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Joerg Arndt, May 03 2016
STATUS
approved