a(n) = the largest integer k where the binary representations of both k and of k+1 occur as substrings in the binary representation of n. a(n) = 0 if n = 2^m -1, for m = any positive integer.
A152221
a(n) = the largest integer k where the binary representations of both k and of k+1 occur as substrings in the binary representation of n. a(n) = 0 if n = 2^m -1, for m = any positive integer.
Terms
- a(0) =0a(1) =1a(2) =0a(3) =1a(4) =1a(5) =2a(6) =0a(7) =1a(8) =1a(9) =1a(10) =2a(11) =3a(12) =5a(13) =6a(14) =0a(15) =1a(16) =1a(17) =1a(18) =3a(19) =4a(20) =1a(21) =5a(22) =2a(23) =3a(24) =3a(25) =5a(26) =5a(27) =6a(28) =13a(29) =14
External references
- oeis: A152221