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!)
A191472 a(n) = 2*prime(n+2) - prime(n+1) - prime(n). 1
5, 6, 10, 8, 10, 8, 10, 16, 10, 14, 14, 8, 10, 16, 18, 10, 14, 14, 8, 14, 14, 16, 22, 16, 8, 10, 8, 10, 32, 22, 16, 10, 22, 14, 14, 18, 14, 16, 18, 10, 22, 14, 10, 8, 26, 36, 20, 8, 10, 16, 10, 22, 22, 18, 18, 10, 14, 14, 8, 22, 38, 22, 8, 10, 32, 26, 26, 14 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

For n > 2, all terms >= 8 and all even integers are possible except for 12.

LINKS

Zak Seidov, Table of n, a(n) for n = 1..1000

Charles R Greathouse IV, Record values

EXAMPLE

a(1) = 2*prime(3) - prime(2) - prime(1) = 2*5 - 3 - 2 = 5.

MATHEMATICA

ps = Prime[Range[100]]; Table[2*ps[[n+2]] - ps[[n+1]] - ps[[n]], {n, Length[ps] - 2}] (* T. D. Noe, Aug 27 2012 *)

PROG

(PARI) first(n)=my(v=vector(n), p=2, q=3, k); forprime(r=5, , if(k++>n, break); v[k]=2*r-q-p; p=q; q=r); v \\ Charles R Greathouse IV, Oct 03 2017

CROSSREFS

Cf. A096379.

Sequence in context: A273039 A019125 A019205 * A189056 A340325 A247561

Adjacent sequences:  A191469 A191470 A191471 * A191473 A191474 A191475

KEYWORD

nonn

AUTHOR

Zak Seidov, Aug 27 2012

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 January 24 00:05 EST 2022. Contains 350515 sequences. (Running on oeis4.)