[go: up one dir, main page]

login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A255000
Prime(n + d(n)), with d(n) = prime(n+1) - prime(n), for n >= 1.
0
3, 7, 11, 19, 17, 29, 23, 37, 47, 37, 59, 53, 47, 61, 73, 79, 67, 89, 83, 79, 103, 101, 109, 131, 109, 107, 127, 113, 137, 193, 149, 163, 149, 193, 157, 181, 191, 181, 197, 199, 191, 239, 197, 223, 211, 271, 277, 239, 233, 251, 269, 251, 307, 281, 283, 293
OFFSET
1,1
COMMENTS
This sequence is not a mere permutation of primes, for some of them will be excluded from it, e.g., 5, 13, 31, 71, 97.
FORMULA
a(n) = prime(n + prime(n + 1) - prime(n)) = A000040(n + A001223(n)).
EXAMPLE
a(1) = prime(1 + prime(2) - prime(1)) = prime(1 + 3 - 2) = prime(2) = 3.
MATHEMATICA
Table[Prime[n + Prime[n + 1] - Prime[n]], {n, 100}]
PROG
(PARI) vector(100, n, prime(n+prime(n+1)-prime(n))) \\ Derek Orr, Feb 19 2015
(Magma) [NthPrime(n+NthPrime(n+1)-NthPrime(n)): n in [1..60]]; // Vincenzo Librandi, Feb 23 2015
(Sage) [nth_prime(n+nth_prime(n+1)-nth_prime(n)) for n in (1..60)] # Bruno Berselli, Mar 02 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Waldemar Puszkarz, Feb 11 2015
STATUS
approved