OFFSET
2,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 2..1000
FORMULA
A179545 / prime(n).
a(n) = 3*A005097(n-1). - R. J. Mathar, Aug 15 2010
EXAMPLE
For n=4, the fourth prime is 7, so a(4) = (3/2) * (7 - 1) = 9. Note that since the sequence starts at n=2, prime(n) is odd, so a(n) is an integer. - Michael B. Porter, Jul 19 2016
MATHEMATICA
Table[(3/2)*(Prime[n] - 1), {n, 2, 100}] (* G. C. Greubel, Jun 17 2016 *)
PROG
(PARI) a(n)=prime(n)\2*3 \\ Charles R Greathouse IV, May 19 2011
(Magma) 3/2*(NthPrime(n)-1): n in [2..60]]; // Vincenzo Librandi, Jun 18 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Jul 30 2010, Aug 02 2010
EXTENSIONS
More terms from R. J. Mathar, Aug 15 2010
STATUS
approved