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”).

A144016
a(n) = the largest positive integer m such that the binary representations of all positive integers <= m are found within the binary representation of n.
6
1, 2, 1, 2, 2, 3, 1, 2, 2, 2, 3, 4, 3, 3, 1, 2, 2, 2, 4, 2, 2, 3, 3, 4, 4, 3, 3, 4, 3, 3, 1, 2, 2, 2, 4, 2, 2, 4, 4, 2, 2, 2, 3, 6, 3, 3, 3, 4, 4, 4, 4, 6, 3, 3, 3, 4, 4, 3, 3, 4, 3, 3, 1, 2, 2, 2, 4, 2, 2, 4, 4, 2, 2, 2, 5, 4, 6, 4, 4, 2, 2, 2, 5, 2, 2, 3, 3, 6, 6, 3, 3, 7, 3, 3, 3, 4, 4, 4, 4, 4, 6, 4, 4, 6, 6
OFFSET
1,2
COMMENTS
From Rémy Sigrist, Mar 10 2018: (Start)
a(n) is the greatest k <= n such that A213629(n, i) > 0 for i = 1..k.
See A261467 for the indices of record values.
(End)
LINKS
FORMULA
a(n) = A261461(n) - 1. - Rémy Sigrist, Mar 10 2018
EXAMPLE
44 in binary is 101100. In this string we find 1 (1 in decimal): (1)01100; 10 (2 in decimal): (10)1100; 11 (3 in decimal): 10(11)00; 100 (4 in decimal): 101(100); 101 (5 in decimal): (101)100; and 110 (6 in decimal): 10(110)0; but not 111 (7 in decimal). So a(44) = 6.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Sep 07 2008
EXTENSIONS
Extended by Ray Chandler, Nov 07 2008
STATUS
approved