login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054763 Residues of consecutive prime differences modulo 6. 5
1, 2, 2, 4, 2, 4, 2, 4, 0, 2, 0, 4, 2, 4, 0, 0, 2, 0, 4, 2, 0, 4, 0, 2, 4, 2, 4, 2, 4, 2, 4, 0, 2, 4, 2, 0, 0, 4, 0, 0, 2, 4, 2, 4, 2, 0, 0, 4, 2, 4, 0, 2, 4, 0, 0, 0, 2, 0, 4, 2, 4, 2, 4, 2, 4, 2, 0, 4, 2, 4, 0, 2, 0, 0, 4, 0, 2, 4, 2, 4, 2, 4, 2, 0, 4, 0, 2, 4, 2, 4, 0, 2, 4, 2, 4, 0, 0, 2, 0, 0, 4, 0, 0, 2, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

For n>2, only the 0-residues may arise several times after each other, that is, there are no "2,2" and no "4,4". Let nz(k) denote the nonzero values of A054763(n). Then nz(0)=1, nz(1)=2, nz(2)=2, and nz(k+1)=6-nz(k) for k>1. Conjecture: the percentage of zeros in A054763(n) asymptotically runs to 50%. - Alex Ratushnyak, Apr 18 2012

LINKS

Michael De Vlieger, Table of n, a(n) for n = 1..10000

FORMULA

a(n) = A001223(n) mod 6.

MATHEMATICA

Mod[#, 6] & /@ Differences@ Prime@ Range@ 105 (* Michael De Vlieger, Mar 05 2017 *)

PROG

(PARI) a(n) = (prime(n+1) - prime(n)) % 6; \\ Michel Marcus, Dec 17 2013

CROSSREFS

Cf. A001223.

Sequence in context: A248913 A227951 A102641 * A100374 A045841 A040003

Adjacent sequences: A054760 A054761 A054762 * A054764 A054765 A054766

KEYWORD

nonn

AUTHOR

Labos Elemer, May 17 2000

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 December 3 09:50 EST 2022. Contains 358517 sequences. (Running on oeis4.)