OFFSET
1,1
COMMENTS
Appeared as a puzzle in "Stickelers", a nationally distributed feature, by Terry Stickels, Sep 28 2006. - Franklin T. Adams-Watters, Sep 28 2006
Also every second prime starting with 2. - Cino Hilliard, Dec 02 2007
Central terms of the triangle in A005145. - Reinhard Zumkeller, Aug 05 2009
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
Table[ Prime[ 2n -1], {n, 52}] (* Robert G. Wilson v, Dec 01 2013 *)
PROG
(Magma) [ NthPrime(2*n-1): n in [1..1000] ]; // Vincenzo Librandi, Apr 11 2011
(Haskell)
a031368 = a000040 . ((subtract 1) . (* 2))
a031368_list = map a000040 [1, 3 ..] -- Reinhard Zumkeller, Nov 25 2012
(PARI) a(n) = prime(2*n-1) \\ Jianing Song, Jun 03 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved