login
A354983
a(n) = 1 if n is thrice a prime power congruent to 1 (mod 3), otherwise 0.
3
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
OFFSET
1
MATHEMATICA
a[n_] := If[Mod[n, 9] == 3 && PrimePowerQ[n/3], 1, 0]; Array[a, 100] (* Amiram Eldar, Jun 15 2022 *)
PROG
(PARI) A354983(n) = ((3==(n%9)) && isprimepower(n/3));
CROSSREFS
Characteristic function of A354984.
Cf. A354982.
Sequence in context: A070109 A355454 A107846 * A179801 A374093 A353474
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 15 2022
STATUS
approved