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

A179893
a(n) = 3/2 * (prime(n)-1).
2
3, 6, 9, 15, 18, 24, 27, 33, 42, 45, 54, 60, 63, 69, 78, 87, 90, 99, 105, 108, 117, 123, 132, 144, 150, 153, 159, 162, 168, 189, 195, 204, 207, 222, 225, 234, 243, 249, 258, 267, 270, 285, 288, 294, 297, 315, 333, 339, 342, 348, 357, 360, 375, 384, 393, 402, 405
OFFSET
2,1
LINKS
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
Sequence in context: A310175 A146562 A342594 * A274191 A133331 A276381
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Jul 30 2010, Aug 02 2010
EXTENSIONS
More terms from R. J. Mathar, Aug 15 2010
STATUS
approved