OFFSET
1,1
COMMENTS
Except for the initial term, a(n)=={2, 4} mod 6.
Not monotonic: a(29) = 214 > 212 = a(30), a(33) = 272 > 268 = a(34), etc. - Charles R Greathouse IV, Jun 03 2013
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 3*A000040(n)-A000040(n+1) = A001748(n)-A000040(n+1) = A001747(n+1)-A001223(n). - R. J. Mathar, Apr 22 2010
a(n) ~ 2n log n. - Charles R Greathouse IV, Jun 03 2013
a(n) = A100021(n) + 3. - Hugo Pfoertner, Nov 02 2023
MATHEMATICA
ListConvolve[{-1, 3}, Prime[Range[100]]] (* Paolo Xausa, Nov 02 2023 *)
PROG
(PARI) a(n) = 3*prime(n) - prime(n+1) \\ Michel Marcus, Jun 03 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Sep 30 2004
EXTENSIONS
Corrected (116 duplicated) by R. J. Mathar, Apr 22 2010
STATUS
approved