login
A104294
a(n) = prime((prime(n)+1)/2).
2
3, 5, 7, 13, 17, 23, 29, 37, 47, 53, 67, 73, 79, 89, 103, 113, 127, 139, 151, 157, 173, 181, 197, 227, 233, 239, 251, 257, 269, 311, 317, 347, 349, 379, 383, 401, 421, 433, 449, 463, 467, 503, 509, 523, 541, 577, 613, 619, 631
OFFSET
2,1
COMMENTS
n=1 is a degenerate case because prime(1)=2, (prime(n)+1)/2 = 3/2 and there is no prime(3/2).
FORMULA
a(n) = A104293(n+1).
a(n) = A104295(n) + A104293(n).
EXAMPLE
a(5)=13 because prime((prime(5)+1)/2) = prime((11+1)/2) = prime(6) = 13;
a(7)=23 because prime((prime(7)+1)/2) = prime((17+1)/2) = prime(9) = 23.
MATHEMATICA
Table[Prime[(Prime[n]+1)/2], {n, 2, 50}]
PROG
(PARI) vector(100, n, prime((prime(n+1)+1)/2)) \\ Derek Orr, Mar 29 2015
CROSSREFS
Cf. A104293 (prime((prime(n)-1)/2)), A104295.
Sequence in context: A032397 A028879 A067567 * A372141 A262100 A171566
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Feb 28 2005
STATUS
approved