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!)
A203415 Vandermonde determinant of the first n nonprimes (A018252). 5

%I #10 Mar 02 2024 13:35:45

%S 1,3,30,1680,201600,87091200,1103619686400,275463473725440000,

%T 240529195987579699200000,1163776461866305616609280000000,

%U 344605941225348705438623229542400000000,3717059729911125118574880410324812431360000000000

%N Vandermonde determinant of the first n nonprimes (A018252).

%C Each term divides its successor, as in A203416, and each term is divisible by the corresponding superfactorial, A000178(n), as in A203417.

%H G. C. Greubel, <a href="/A203415/b203415.txt">Table of n, a(n) for n = 1..42</a>

%t z=20;

%t nonprime = Join[{1}, Select[Range[250], CompositeQ]]; (* A018252 *)

%t f[j_]:= nonprime[[j]];

%t v[n_]:= Product[Product[f[k] - f[j], {j,1,k-1}], {k,2,n}];

%t d[n_]:= Product[(i-1)!, {i,1,n}];

%t Table[v[n], {n,1,z}] (* this sequence *)

%t Table[v[n+1]/v[n], {n,1,z}] (* A203416 *)

%t Table[v[n]/d[n], {n,1,z}] (* A203417 *)

%o (Magma)

%o A018252:=[n : n in [1..250] | not IsPrime(n) ];

%o A203415:= func< n | n eq 1 select 1 else (&*[(&*[A018252[k+2] - A018252[j+1]: j in [0..k]]): k in [0..n-2]]) >;

%o [A203415(n): n in [1..30]]; // _G. C. Greubel_, Feb 29 2024

%o (SageMath)

%o A018252=[n for n in (1..250) if not is_prime(n)]

%o def A203415(n): return product(product(A018252[k+1]-A018252[j] for j in range(k+1)) for k in range(n-1))

%o [A203415(n) for n in range(1,31)] # _G. C. Greubel_, Feb 29 2024

%Y Cf. A000040, A018252, A203416, A203417.

%K nonn

%O 1,2

%A _Clark Kimberling_, Jan 01 2012

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 April 17 21:22 EDT 2024. Contains 371767 sequences. (Running on oeis4.)