|
|
A179865
|
|
Number of n-bit binary numbers containing one run of 0's.
|
|
3
|
|
|
1, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, 351, 378, 406, 435, 465, 496, 528, 561, 595, 630, 666, 703, 741, 780, 820, 861, 903, 946, 990, 1035, 1081, 1128, 1176, 1225, 1275, 1326, 1378, 1431
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
G.f. = x + x^2 + 3*x^3 + 6*x^4 + 10*x^5 + 15*x^6 + 21*x^7 + 28*x^8 + ...
For n = 4, the 6 numbers are 1000, 1001, 1011, 1100, 1101, 1110.
|
|
PROG
|
(Python)
if n==1: return 1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|