OFFSET
1
LINKS
FORMULA
a(n) = A319690(n) mod 2.
Fully multiplicative with a(p) = 1 if p is a prime of the form 3k+1, otherwise a(p) = 0.
MATHEMATICA
Table[If[AllTrue[FactorInteger[n][[All, 1]], Mod[#, 3]==1&], 1, 0], {n, 120}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 26 2020 *)
PROG
(PARI) A319691(n) = factorback(apply(p -> ((p%3)%2), factor(n)[, 1]));
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, Oct 04 2018
STATUS
approved