Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A123635
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A123635 Residue mod 3 of average of n-th and (n+1)st odd primes. +0
1
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; listen)
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: A034876 A091393 A110270 this_sequence A124304 A165408 A089812

Adjacent sequences: A123632 A123633 A123634 this_sequence A123636 A123637 A123638

KEYWORD

easy,nonn

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research