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!)
A093719 a(n) = (n mod 2)^(n mod 3). 5
1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
This is a periodic sequence with period 6. The repeating block is 1,1,0,1,0,1. - Michel Dekking, Sep 19 2020
LINKS
FORMULA
a(n) = A000035(n)^A010872(n).
a(A047273(n)) = 1, a(A047235(n)) = 0. [Reinhard Zumkeller, Oct 01 2008]
G.f.: -(x^5 + x^3 + x + 1)/(x^6 - 1). - Colin Barker, Apr 01 2013
MAPLE
A093719:=n->(n mod 2)^(n mod 3): seq(A093719(n), n=0..40); # Wesley Ivan Hurt, Oct 13 2014
MATHEMATICA
PadRight[{}, 120, {1, 1, 0, 1, 0, 1}] (* Harvey P. Dale, Jun 26 2021 *)
PROG
(Magma) [(n mod 2)^(n mod 3): n in [0..100]]; // Wesley Ivan Hurt, Oct 13 2014
(PARI) A093719(n) = ((n%2)^(n%3)); \\ Antti Karttunen, Dec 19 2018
(GAP) List([0..120], n->(n mod 2)^(n mod 3)); # Muniru A Asiru, Dec 19 2018
CROSSREFS
Sequence in context: A286064 A065535 A285518 * A153778 A065251 A039982
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Apr 12 2004
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 25 10:39 EDT 2024. Contains 371967 sequences. (Running on oeis4.)