OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
If n=1, then a(1)=abs(p(1)*p(4)-p(2)*p(3))=abs(2*7-3*5)=abs(14-15)=1.
If n=2, then a(2)=abs(p(2)*p(5)-p(3)*p(4))=abs(3*11-5*7)=abs(33-35)=2.
If n=5, then a(5)=abs(p(5)*p(8)-p(6)*p(7))=abs(11*19-13*17)=abs(209-221)=12, etc.
MAPLE
p:=ithprime: seq(abs(p(n)*p(n+3)-p(n+1)*p(n+2)), n=1..60); # Emeric Deutsch, Aug 27 2008
MATHEMATICA
Abs[#[[1]]*#[[4]]-#[[2]]#[[3]]]&/@Partition[Prime[Range[60]], 4, 1] (* Harvey P. Dale, May 14 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 05 2008
EXTENSIONS
Corrected and extended by Emeric Deutsch, Aug 27 2008
STATUS
approved