a(n) = the number of digits in the binary representation of n that each either precede and/or follow a similarly valued digit.
A165316
a(n) = the number of digits in the binary representation of n that each either precede and/or follow a similarly valued digit.
Terms
- a(0) =0a(1) =0a(2) =2a(3) =2a(4) =0a(5) =2a(6) =3a(7) =3a(8) =2a(9) =0a(10) =2a(11) =4a(12) =2a(13) =3a(14) =4a(15) =4a(16) =3a(17) =2a(18) =4a(19) =2a(20) =0a(21) =2a(22) =3a(23) =5a(24) =4a(25) =2a(26) =4a(27) =5a(28) =3a(29) =4
External references
- oeis: A165316