OFFSET
1,3
COMMENTS
Except for the initial term, a(n)==(1,5) mod 6.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A098764(n) - 3.
MAPLE
f:=n->3*ithprime(n)-ithprime(n+1)-3;
MATHEMATICA
3#[[1]]-#[[2]]-3&/@Partition[Prime[Range[80]], 2, 1] (* Harvey P. Dale, Oct 13 2018 *)
PROG
(PARI) a(n) = 3*prime(n) - prime(n+1) - 3; \\ Michel Marcus, Jan 31 2023
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Giovanni Teofilatto, Nov 20 2004
EXTENSIONS
Corrected by Neven Juric (neven.juric(AT)apis-it.hr), rechecked by N. J. A. Sloane, Jun 13 2006
STATUS
approved