OFFSET
1,1
LINKS
Iain Fox, Table of n, a(n) for n = 1..300
EXAMPLE
The matrix begins:
2 1 1 1 1 1 1 ...
1 3 1 1 1 1 1 ...
1 1 5 1 1 1 1 ...
1 1 1 7 1 1 1 ...
1 1 1 1 11 1 1 ...
1 1 1 1 1 13 1 ...
MAPLE
d:=(i, j)->`if`(i<>j, 1, ithprime(i)):
seq(LinearAlgebra[Determinant](Matrix(n, d)), n=1..20); # Muniru A Asiru, Feb 16 2018
MATHEMATICA
Table[ Det[ DiagonalMatrix[ Table[ Prime[ i ] - 1, {i, 1, n} ] ] + 1 ], {n, 1, 20} ]
PROG
(PARI) a(n) = matdet(matrix(n, n, i, j, if(i == j, prime(i), 1))) \\ Iain Fox, Feb 15 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jan 28 2002
EXTENSIONS
a(18)-a(19) from Iain Fox, Feb 15 2018
STATUS
approved