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!)
A227625 Indicator sequence of primes p > 3: k = p mod 6, if k = 5 then a(n) = -1, if k = 1 then a(n) = 1 else a(n) = 0, a(2) = -1, a(3) = 1. 1
0, -1, 1, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
MATHEMATICA
Join[{0, -1, 1}, Table[If[!PrimeQ[n], 0, If[Mod[n, 6] = 1, 1, -1], {n, 4, 100}]] (* T. D. Noe, Jul 20 2013 *)
CROSSREFS
Cf. A129950 (indicator function of twin primes), A010051 (characteristic function of primes: 1 if n is prime else 0).
Sequence in context: A286487 A122257 A332219 * A129950 A010051 A358751
KEYWORD
sign
AUTHOR
Freimut Marschner, Jul 18 2013
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 29 11:37 EDT 2024. Contains 372114 sequences. (Running on oeis4.)