login
A359379
a(n) = 1 if n is either a multiple of 4, or an odd multiple of 3, otherwise 0.
3
1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1
OFFSET
0
COMMENTS
Period 12: repeat [1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0]. - Amiram Eldar, Jan 24 2023
FORMULA
a(n) = A079979(3+n) + A121262(n).
For n >= 1, a(n) = 1-A359374(n).
MATHEMATICA
a[n_] := If[Mod[n, 6] == 3 || Mod[n, 4] == 0, 1, 0]; Array[a, 100, 0] (* Amiram Eldar, Jan 24 2023 *)
PROG
(PARI) A359379(n) = (((n%2)&&!(n%3))||!(n%4));
CROSSREFS
Characteristic function of A359376, whose complement A359375 gives the positions of zeros.
Cf. A079979, A121262, A359374 (one's complement).
Sequence in context: A347283 A214293 A323096 * A120527 A188093 A190843
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, Dec 31 2022
STATUS
approved