OFFSET
0,4
COMMENTS
a(n) is a lower bound for the minimum number of comparisons needed to sort n elements using a comparison sort (A036604). - Alex Costea, Mar 23 2019
REFERENCES
D. E. Knuth, Art of Computer Programming, Vol. 3, Sect. 5.3.1.
E. Reingold, J. Nievergelt and N. Deo, Combinatorial Algorithms, Prentice-Hall, 1977, section 7.4.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Tianxing Tao, On optimal arrangement of 12 points, pp. 229-234 in Combinatorics, Computing and Complexity, ed. D. Du and G. Hu, Kluwer, 1989.
LINKS
MATHEMATICA
Array[Ceiling@ Log2[#!] &, 60, 0] (* Michael De Vlieger, Mar 27 2019 *)
PROG
(Magma) [Ceiling(Log(2, Factorial(n))) : n in [0..70]]; // G. C. Greubel, Nov 03 2022
(SageMath) [ceil(log(factorial(n), 2)) for n in range(71)] # G. C. Greubel, Nov 03 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved