login
a(n) = A203415(n)/A000178(n).
5

%I #18 Mar 02 2024 13:36:00

%S 1,3,15,140,700,2520,44352,2196480,47567520,634233600,51753461760,

%T 13984935444480,1448751906201600,82605199597240320,

%U 32797812715211980800,5296846753506734899200,483765735240908144640000,28985693293514522492928000

%N a(n) = A203415(n)/A000178(n).

%H G. C. Greubel, <a href="/A203417/b203417.txt">Table of n, a(n) for n = 1..135</a>

%H R. Chapman, <a href="https://www.maa.org/sites/default/files/Robin_Chapman27238.pdf">A polynomial taking integer values</a>, Mathematics Magazine 29 (1996), p. 121.

%H <a href="/index/Di#divseq">Index to divisibility sequences</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}] (* A203415 *)

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

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

%o (Magma)

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

%o BarnesG:= func< n | (&*[Factorial(k): k in [0..n-2]]) >;

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

%o [v(n)/BarnesG(n+1): 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 BarnesG(n): return product(factorial(j) for j in range(1, n-1))

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

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

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

%K nonn

%O 1,2

%A _Clark Kimberling_, Jan 01 2012