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