OFFSET
1
LINKS
FORMULA
a(n) = 1 if A346607(n) = 0, otherwise 0.
MATHEMATICA
f[p_, e_] := p^e - 1; uphi[n_] := Times @@ f @@@ FactorInteger[n]; uphi[1] = 1; a[n_] := Module[{m = 1, u = uphi[n]}, While[m <= u && ! Divisible[m*(m + 1), n], m++]; If[m == u, 1, 0]]; Array[a, 100] (* Amiram Eldar, Jun 13 2022 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 13 2022
STATUS
approved