|
|
A092431
|
|
Numbers having in binary representation a leading 1 followed by n zeros and n-1 ones.
|
|
9
|
|
|
2, 9, 35, 135, 527, 2079, 8255, 32895, 131327, 524799, 2098175, 8390655, 33558527, 134225919, 536887295, 2147516415, 8590000127, 34359869439, 137439215615, 549756338175, 2199024304127, 8796095119359, 35184376283135, 140737496743935, 562949970198527
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Smallest numbers having in binary representation n 0's and n 1's: a(n) = Min{m: A023416(m)=A000120(m)=n}.
|
|
LINKS
|
Eric Weisstein's World of Mathematics, Binary
|
|
FORMULA
|
a(n+1) = 2*a(n) + 4^n + 1.
a(n) = 2^(2*n-1) + 2^(n-1) - 1.
G.f.: x*(-2+5*x) / ( (x-1)*(2*x-1)*(4*x-1) ). - R. J. Mathar, Jun 01 2011
E.g.f.: exp(x)*(exp(3*x) + exp(x) - 2)/2. - Stefano Spezia, Sep 27 2023
|
|
MATHEMATICA
|
Table[FromDigits[Join[PadRight[{1}, n, 0], PadRight[{}, n-2, 1]], 2], {n, 2, 30}]//Sort (* or *) Rest[CoefficientList[Series[x (-2+5x)/((x-1)(2x-1)(4x-1)), {x, 0, 30}], x]] (* Harvey P. Dale, Jul 30 2021 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|