OFFSET
1,1
COMMENTS
If A006562 is when -prime(k-1) + 2*prime(k) - prime(k+1) = 0; then this "Integer differential" is the next higher order.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
P:= select(isprime, [2, seq(i, i=3..10000, 2)]):
DP:= P[2..-1]-P[1..-2]:
D2:= DP[2..-1]-DP[1..-2]:
P3:= D2[2..-1]-D2[1..-2]:
J:= select(i -> P3[i]=0, [$1..nops(P3)]):
P[J+~1]; # Robert Israel, Dec 15 2024
MATHEMATICA
Flatten[Table[If[ -Prime[ -1 +n] + 3*Prime[n] - 3*Prime[1 + n] + Prime[n + 2] == 0, Prime[n], {}], {n, 2, 500}]]
Select[Partition[Prime[Range[500]], 4, 1], 3#[[2]]+#[[4]]==#[[1]]+3#[[3]]&][[All, 2]](* Harvey P. Dale, Jul 09 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 07 2008
EXTENSIONS
Edited by N. J. A. Sloane, Jul 01 2008
Definition corrected by Harvey P. Dale, Jul 09 2018
STATUS
approved