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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A123635 Residue mod 3 of average of n-th and (n+1)st odd primes. 0
1, 0, 0, 0, 0, 0, 0, 2, 0, 1, 0, 0, 0, 2, 2, 0, 1, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 2, 2, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 2, 0, 0, 2, 2, 2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 1, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 2, 0, 1, 1, 0, 2, 2, 0, 1, 0 (list; graph; refs; listen; history; internal format)
OFFSET

1,8

FORMULA

a(n) = (p(n)+p(n+1))/2 mod 3, where p(n) = n-th odd prime.

EXAMPLE

Odd primes: 3,5,7,11,13,17,23,...

Averages: (3+5)/2, (5+7)/2, (7+11)/2, ...

Residues mod 3: 1, 0, 0, 0, 0, 0, 0, 2, ...

MATHEMATICA

f[n_] := Mod[Prime[n + 1] + Prime[n + 2], 6]/2; Array[f, 105}] (* Robert G. Wilson v Oct 07 2006 *)

CROSSREFS

Cf. A065091.

Sequence in context: A110270 A187143 A187144 * A124304 A165408 A171368

Adjacent sequences:  A123632 A123633 A123634 * A123636 A123637 A123638

KEYWORD

easy,nonn

AUTHOR

Clark Kimberling (ck6(AT)evansville.edu), Oct 03 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 17:11 EST 2012. Contains 205938 sequences.