login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A298883 Determinant of n X n matrix whose elements are m(i,j) = prime(i)^j. 2

%I #29 Jul 28 2019 16:43:32

%S 1,2,6,180,50400,958003200,131514679296000,1352181326649753600000,

%T 112703642894318944282214400000,

%U 903025586371469323704949549301760000000,2012769637740033870687308804001121075357286400000000

%N Determinant of n X n matrix whose elements are m(i,j) = prime(i)^j.

%C Traces of these matrices are A087480.

%H Robert Israel, <a href="/A298883/b298883.txt">Table of n, a(n) for n = 0..35</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Vandermonde_matrix">Vandermonde matrix</a>

%F a(n) = Product_{1<=i<=n} prime(i) * Product_{1<=i<j<=n} (prime(j)-prime(i)). - _Robert Israel_, Jan 29 2018

%e For n=1:

%e |2| = 2, then a(1) = 2.

%e For n=2:

%e |2 4| = 6, then a(2) = 6.

%e |3 9|

%e For n=3:

%e |2 4 8| = 180, then a(3) = 180.

%e |3 9 27|

%e |5 25 125|

%p with(LinearAlgebra):

%p a:= n-> Determinant(Matrix(n, (i,j)-> ithprime(i)^j)):

%p seq(a(n), n=0..12); # _Alois P. Heinz_, Jan 28 2018

%p # Alternative:

%p f:= proc(n) local P;

%p P:= [seq(ithprime(i),i=1..n)];

%p convert(P,`*`)*mul(mul(P[j]-P[i],j=i+1..n),i=1..n-1)

%p end proc:

%p map(f, [$0..20]); # _Robert Israel_, Jan 29 2018

%t a[n_]:=Table[Prime[i]^j,{i,1,n},{j,1,n}];

%t Table[Det[a[n]],{n,1,10}]

%o (PARI) a(n) = matdet(matrix(n, n, i, j, prime(i)^j)); \\ _Michel Marcus_, Jan 28 2018

%Y Cf. A080358, A087480, A298903.

%K nonn

%O 0,2

%A _Andres Cicuttin_, Jan 28 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 4 18:21 EDT 2024. Contains 372257 sequences. (Running on oeis4.)