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!)
A262021 a(n) = prime(prime(n)) - n. 1
2, 3, 8, 13, 26, 35, 52, 59, 74, 99, 116, 145, 166, 177, 196, 225, 260, 265, 312, 333, 346, 379, 408, 437, 484, 521, 536, 559, 570, 587, 678, 707, 740, 763, 824, 841, 882, 929, 952, 991, 1022, 1045, 1110, 1127, 1156, 1171, 1250, 1361, 1384, 1397 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Inspired by A014689.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A006450(n) - n.
a(n) ~ n log^2 n. - Charles R Greathouse IV, Sep 08 2015
EXAMPLE
For n = 1, a(n) = prime(prime(n)) - n = prime(prime(1)) - 1 = 2.
MATHEMATICA
Table[Prime[Prime[n]] - n, {n, 50}] (* Vincenzo Librandi, Sep 09 2015 *)
PROG
(PARI)
a(n) = prime(prime(n)) - n;
vector(50, n, a(n))
(Magma) [NthPrime(NthPrime(n))-n: n in [1..50]]; // Vincenzo Librandi, Sep 09 2015
CROSSREFS
Sequence in context: A147357 A004138 A213046 * A221181 A116503 A291589
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Sep 08 2015
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 06:49 EDT 2024. Contains 371964 sequences. (Running on oeis4.)