OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..42
MATHEMATICA
composite = Select[Range[100], CompositeQ]; (* A002808 *)
z = 20;
f[j_]:= composite[[j]];
v[n_]:= Product[Product[f[k] - f[j], {j, 1, k-1}], {k, 2, n}];
d[n_]:= Product[(i - 1)!, {i, 1, n}];
Table[v[n], {n, z}] (* this sequence *)
Table[v[n+1]/v[n], {n, z}] (* A203419 *)
Table[v[n]/d[n], {n, z}] (* A203420 *)
PROG
(Magma)
A002808:=[n: n in [2..250] | not IsPrime(n)];
a:= func< n | n eq 0 select 1 else (&*[(&*[A002808[k+2] - A002808[j+1]: j in [0..k]]): k in [0..n-1]]) >;
[a(n): n in [0..20]]; // G. C. Greubel, Feb 24 2024
(SageMath)
A002808=[n for n in (2..250) if not is_prime(n)]
[a(n) for n in range(15)] # G. C. Greubel, Feb 24 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 02 2012
STATUS
approved