OFFSET
1,1
COMMENTS
Also, smallest member of the first pair of consecutive primes such that between them is a composite number divisible by the n-th prime. - Amarnath Murthy, Sep 25 2002
Except for its initial term, A006992 is a subsequence based on iteration of n -> A151799(2n). The range of this sequence is a subset of A065091. - M. F. Hasler, May 08 2016
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
n=18: p(18)=61, so a(18) is the largest prime below 2*61=122, which is 113.
MAPLE
with(numtheory):
A059788 := proc(n)
prevprime(2*ithprime(n)) ;
end proc:
seq(A059788(n), n=1..50) ; # R. J. Mathar, May 08 2016
MATHEMATICA
a[n_] := Prime[PrimePi[2Prime[n]]]
NextPrime[2*Prime[Range[100]], -1] (* Zak Seidov, May 08 2016 *)
PROG
(PARI) a(n) = precprime(2*prime(n)); \\ Michel Marcus, May 08 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Feb 22 2001
STATUS
approved