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!)
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; text; internal format)
OFFSET
1,8
LINKS
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: A318875 A187143 A187144 * A124304 A165408 A186733
KEYWORD
easy,nonn
AUTHOR
Clark Kimberling, Oct 03 2006
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 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)