OFFSET
0,3
EXAMPLE
For n=1:
|prime(2) - prime(1)| = |3 - 2| = |1| = 1,
then a(1) = 1.
For n=2:
|prime(2)-prime(1) prime(3)-prime(1)| = |3-2 5-2| = |1 3|= -2,
|prime(3)-prime(2) prime(4)-prime(2)| |5-3 7-3| |2 4|
then a(2) = -2.
MAPLE
with(LinearAlgebra):
a:= n-> Determinant(Matrix(n, (i, j)-> ithprime(i+j)-ithprime(i))):
seq(a(n), n=0..25); # Alois P. Heinz, Jan 28 2018
MATHEMATICA
b[n_]:=Table[(Prime[i+j]-Prime[i]), {i, 1, n}, {j, 1, n}];
Table[Det[b[n]], {n, 1, 24}]
PROG
(PARI) a(n) = matdet(matrix(n, n, i, j, prime(i+j)-prime(i))); \\ Michel Marcus, Jan 28 2018
CROSSREFS
KEYWORD
sign
AUTHOR
Andres Cicuttin, Jan 28 2018
STATUS
approved