login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A175191 a(n) = the smallest positive integer such that (the n-th prime)+2*a(n) is composite. 1
1, 3, 2, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Every term except a(2) (which is 3) is either 1 or 2.

LINKS

G. C. Greubel, Table of n, a(n) for n = 1..1000

MATHEMATICA

spi[n_]:=Module[{i=1}, While[PrimeQ[Prime[n]+2i], i++]; i]; Array[spi, 110] (* Harvey P. Dale, Apr 23 2012 *)

CROSSREFS

Sequence in context: A077089 A156352 A323756 * A328928 A324534 A248505

Adjacent sequences:  A175188 A175189 A175190 * A175192 A175193 A175194

KEYWORD

nonn

AUTHOR

Leroy Quet, Mar 01 2010

EXTENSIONS

Extended by Ray Chandler, Mar 04 2010

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 18 17:02 EDT 2020. Contains 337170 sequences. (Running on oeis4.)