login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
Period 12: repeat [1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0]. - Amiram Eldar, Jan 24 2023
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 28 14:21 EDT 2024. Contains 372088 sequences. (Running on oeis4.)