OFFSET
1
COMMENTS
Characteristic function of A349165.
LINKS
FORMULA
a(n) = 1 iff A342671(n) == 1, otherwise a(n) = 0.
MATHEMATICA
f1[p_, e_] := NextPrime[p]^e; f2[p_, e_] := (p^(e + 1) - 1)/(p - 1); a[1] = 1; a[n_] := Boole @ CoprimeQ[Times @@ f1 @@@ (f = FactorInteger[n]), Times @@ f2 @@@ f]; Array[a, 100] (* Amiram Eldar, Nov 28 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 10 2021
STATUS
approved