OFFSET
1,2
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = -prime(n) + 3*prime(n+1) - 3*prime(n+2) + prime(n+3) = A036263(n+1)-A036263(n). - Robert G. Wilson v, Dec 19 2012
MATHEMATICA
Differences[ Prime@ Range@ 85, 3] (* Robert G. Wilson v, Dec 19 2012 *)
PROG
(PARI) A036264_upto(N=99) = (D(v)=v[^1]-v[^-1])(D(D(primes(N+3)))) \\ M. F. Hasler, Oct 15 2024
(PARI) apply( {A036264(n)=[prime(n+k)|k<-[0..3]]*[-1, 3, -3, 1]~}, [1..99]) \\ M. F. Hasler, Oct 15 2024
CROSSREFS
KEYWORD
sign,changed
AUTHOR
STATUS
approved