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”).

A126702
a(n) = prime(!n), where !n is subfactorial n.
0
2, 3, 23, 193, 1697, 15907, 161773, 1777543, 21084257, 269475737, 3696588877, 54223012561, 847458120167, 14065357995331, 247134401977037, 4583801628003613, 89514011909036503, 1836054207193376321
OFFSET
2,1
FORMULA
a(n) = A000040(A000166(n)). - Amiram Eldar, Aug 27 2020
EXAMPLE
a(3) = 23,because !4 = 9 and the 9th prime is 23.
MATHEMATICA
Prime[Subfactorial[Range[2, 15]]] (* Harvey P. Dale, Nov 11 2011 *)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Shyam Sunder Gupta, Feb 11 2007
EXTENSIONS
a(16)-a(19) using Kim Walisch's primecount, from Amiram Eldar, Aug 27 2020
STATUS
approved