OFFSET
1,2
COMMENTS
Right border of triangle A131424.
FORMULA
a(n) = 2*A000040(n) - 3.
EXAMPLE
a(4) = 11 = 2*p(4) - 3 = 2*7 - 3.
MAPLE
MATHEMATICA
2#-3&/@Prime[Range[80]] (* Harvey P. Dale, Jul 24 2011 *)
PROG
(Magma) [2*NthPrime(n) - 3: n in [1..65]]; // Vincenzo Librandi, Mar 30 2015
(PARI) a(n) = 2*prime(n) - 3 \\ Charles R Greathouse IV, Jul 12 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Jul 10 2007
STATUS
approved