OFFSET
1,1
COMMENTS
There are occurrences where the next term is less than the current term. Conjecture: The number of occurrences where the current term exceeds the next term is infinite.
FORMULA
a(n) = prime(n) + prime(n+1) + prime(n+2) - prime(n+3).
a(n) = Sum_{k=0..3} (-1)^A121262(k+1) * prime(n+k). - Wesley Ivan Hurt, Nov 22 2023
MATHEMATICA
Total[Take[#, 3]]-Last[#]&/@Partition[Prime[Range[100]], 4, 1] (* Harvey P. Dale, May 14 2011 *)
PROG
(PARI) g(n)=for(x=1, n, print1(prime(x)+prime(x+1)+prime(x+2)-prime(x+3)", "))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Cino Hilliard, Aug 04 2004
EXTENSIONS
Offset set to 1 by Wesley Ivan Hurt, Nov 22 2023
STATUS
approved