OFFSET
0,3
COMMENTS
Suggested by reading the Knuth article.
REFERENCES
D. E. Knuth, Efficient balanced codes, IEEE Trans. Inform. Theory, 32 (No. 1, 1986), 51-53.
EXAMPLE
C(30,15) = 155117520; 2^28 = 268435456; difference is 113317936.
k = 0, 1, 3, 5, 7, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, ... - R. J. Mathar, Nov 15 2019
MAPLE
A094780 := proc(n)
local cb, k ;
cb := binomial(2*n, n) ;
k := ceil(log[2](cb)) ;
2^k-cb ;
end proc:
seq(A094780(n), n=0..10); # R. J. Mathar, Nov 15 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 10 2004
STATUS
approved