|
Search: id:A165317
|
|
|
| A165317 |
|
a(n) = the number of digits in the binary representation of n that each do not precede or follow a similarly valued digit. |
|
+0 2
|
|
| 1, 2, 0, 1, 3, 1, 0, 1, 2, 4, 2, 0, 2, 1, 0, 1
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
A165316(n) + A165317(n) = the number of digits in the binary representation of n.
|
|
EXAMPLE
|
184 in binary is 10111001. There are exactly three binary digits (the first and last 1's, and the leftmost 0) that are each not adjacent to to a similar digit. So, a(184) = 3.
|
|
CROSSREFS
|
A165316
Sequence in context: A060318 A089994 A100260 this_sequence A124943 A099557 A079217
Adjacent sequences: A165314 A165315 A165316 this_sequence A165318 A165319 A165320
|
|
KEYWORD
|
base,more,nonn
|
|
AUTHOR
|
Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Sep 14 2009
|
|
|
Search completed in 0.002 seconds
|