login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A200311
Number of comparisons needed for optimal merging of 2 elements with n elements.
1
2, 3, 4, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13
OFFSET
1,1
REFERENCES
R. L. Graham, On sorting by comparisons, in Proceedings of the ATLAS Symposium, 1971, pp. 263-269; http://www.math.ucsd.edu/~ronspubs/71_07_sorting.pdf.
F. K. Hwang and S. Lin, Optimal merging of 2 elements with n elementsw, Acta Informatica, 1 (1971), 145-158.
FORMULA
Let f(i) = A200310(i). Then for i in the range f(n-1)+1 through f(n), a(i) = n.
MAPLE
s:=[2, 3];
for n from 4 to 13 do
for i from A200310(n-1)+1 to A200310(n) do s:=[op(s), n]; od:
od:
CROSSREFS
Sequence in context: A365092 A096365 A319412 * A007600 A195872 A091333
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 15 2011
STATUS
approved