login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A093719 a(n) = (n mod 2)^(n mod 3). 4
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

LINKS

Antti Karttunen, Table of n, a(n) for n = 0..65537

Index entries for characteristic functions

FORMULA

a(n) = A000035(n)^A010872(n).

a(n) = 1 - ( (n+1)^2 mod (1+(n^2 mod 3)) ). - Paolo P. Lava, Nov 29 2006

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

a(n) = 0^( ((n-3) mod 2)*((n-3) mod 3) ). - Wesley Ivan Hurt, Oct 13 2014

MAPLE

A093719:=n->(n mod 2)^(n mod 3): seq(A093719(n), n=0..40); # Wesley Ivan Hurt, Oct 13 2014

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

Cf. A000035, A010872, A047235, A047273, A093718.

Sequence in context: A286064 A065535 A285518 * A153778 A065251 A039982

Adjacent sequences:  A093716 A093717 A093718 * A093720 A093721 A093722

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 20 10:09 EST 2019. Contains 329334 sequences. (Running on oeis4.)