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!)
A244735 a(n) = (prime(n) mod 5) mod 2. 6
0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
FORMULA
(prime(n) mod 5) mod 2.
EXAMPLE
n ... prime(n) mod 5 mod 2
1 ..... 2 ..... 2 ... 0
2 ..... 3 ..... 3 ... 1
3 ..... 5 ..... 0 ... 0
4 ..... 7 ..... 2 ... 0
5 ..... 11 .... 1 ... 1
6 ..... 13 .... 3 ... 1
MAPLE
A244735:=n->(ithprime(n) mod 5) mod 2: seq(A244735(n), n=1..100); # Wesley Ivan Hurt, Jul 06 2014
MATHEMATICA
z = 300; u = Mod[Table[Mod[Prime[n], 5], {n, 1, z}], 2] (* A244735 *)
Flatten[Position[u, 0]] (* A244736 *)
Flatten[Position[u, 1]] (* A244737 *)
Mod[Mod[Prime[Range[90]], 5], 2] (* Harvey P. Dale, Jul 22 2020 *)
CROSSREFS
Sequence in context: A078580 A059651 A286339 * A245938 A176405 A084091
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 05 2014
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 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)