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!)
A200261 a(n) = 1 iff n-th prime has an even digit sum. 4
1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1

COMMENTS

Characteristic function of A200259.

LINKS

T. D. Noe, Table of n, a(n) for n = 1..1000

MATHEMATICA

Table[1 - Mod[Total[IntegerDigits[Prime[n]]], 2], {n, 100}] (* T. D. Noe, Nov 21 2011 *)

PROG

(Magma) [IsEven(&+Intseq(NthPrime(n))) select 1 else 0: n in [1..100]]; // Bruno Berselli, Nov 15 2011

CROSSREFS

Cf. A200259, A200263.

Sequence in context: A303561 A284680 A004555 * A288855 A138711 A285617

Adjacent sequences: A200258 A200259 A200260 * A200262 A200263 A200264

KEYWORD

nonn,base,changed

AUTHOR

N. J. A. Sloane, Nov 15 2011

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 March 26 02:36 EDT 2023. Contains 361529 sequences. (Running on oeis4.)