|
|
A255937
|
|
Number of distinct products of distinct factorials up to n!.
|
|
1
|
|
|
1, 1, 2, 4, 8, 16, 28, 56, 108, 204, 332, 664, 1114, 2228, 4078, 7018, 11402, 22804, 40638, 81276, 140490, 230328, 391544, 783088, 1287034, 2273676, 3903626, 6837760, 10368184, 20736368, 34081198, 68162396
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
Erdős and Graham prove that log a(n) ~ n log log n/log n.
|
|
EXAMPLE
|
a(3) = |{1!, 2!, 3!, 2!*3!}| = |{1, 2, 6, 12}| = 4.
|
|
MAPLE
|
s:= proc(n) option remember; (f-> `if`(n=0, {f},
map(x-> [x, x*f][], s(n-1))))(n!)
end:
a:= n-> nops(s(n)):
|
|
MATHEMATICA
|
a[n_] := a[n] = If[n == 0, 1, If[PrimeQ[n], 2 a[n-1], Times @@@ ((Subsets[Range[n]] // Rest) /. k_Integer -> k!) // Union // Length]];
|
|
PROG
|
(PARI) a(n)=my(v=[1], N=n!); for(k=2, n-1, v=Set(concat(v, v*k!))); #v + sum(i=1, #v, !setsearch(v, N*v[i]))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|