OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..350
MATHEMATICA
z=20;
nonprime = Join[{1}, Select[Range[250], CompositeQ]]; (* A018252 *)
f[j_]:= nonprime[[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, 1, z}] (* A203415 *)
Table[v[n+1]/v[n], {n, 1, z}] (* this sequence *)
Table[v[n]/d[n], {n, 1, z}] (* A203417 *)
PROG
(Magma)
A018252:=[n : n in [1..250] | not IsPrime(n) ];
[A203416(n): n in [1..30]]; // G. C. Greubel, Feb 29 2024
(SageMath)
A018252=[n for n in (1..250) if not is_prime(n)]
[A203416(n) for n in range(1, 31)] # G. C. Greubel, Feb 29 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 01 2012
STATUS
approved