login
A134591
a(n) is n reflected in n-th prime: distance between a(n) and prime(n) equals distance between prime(n) and n.
0
3, 4, 7, 10, 17, 20, 27, 30, 37, 48, 51, 62, 69, 72, 79, 90, 101, 104, 115, 122, 125, 136, 143, 154, 169, 176, 179, 186, 189, 196, 223, 230, 241, 244, 263, 266, 277, 288, 295, 306, 317, 320, 339, 342, 349, 352, 375, 398, 405, 408, 415, 426, 429, 448, 459, 470
OFFSET
1,1
FORMULA
a(n) = A014689(n) + A000040(n) = 2*A000040(n) - A000027(n).
a(n) - prime(n) = prime(n) - n => a(n) = 2*prime(n) - n.
MATHEMATICA
Table[2Prime[n]-n, {n, 100}]
PROG
(PARI) a(n) = 2*prime(n) - n; \\ Michel Marcus, Mar 11 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 04 2007
STATUS
approved