|
| |
|
|
A164089
|
|
For n >=4, a(n) = the numerical value of the substring of binary n containing all digits but the first and last. a(1) = a(2) = a(3) = 0.
|
|
0
|
|
|
|
0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 2, 2, 3, 3, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
OFFSET
|
1,12
|
|
|
COMMENTS
|
a(2n) = a(2n+1) for all n.
For m >=2, terms a(2^m) through a(2^(m+1)-1) are 0,0,1,1,2,2,3,3,..., 2^(m-1)-1, 2^(m-1)-1.
|
|
|
LINKS
|
Table of n, a(n) for n=1..94.
|
|
|
EXAMPLE
|
26 in binary is 11010. Take the middle digits 1(101)0 - > 101, which is 5 in decimal. Therefore a(26) = 5.
|
|
|
CROSSREFS
|
Sequence in context: A125503 A127009 A181313 * A068460 A143797 A079729
Adjacent sequences: A164086 A164087 A164088 * A164090 A164091 A164092
|
|
|
KEYWORD
|
base,easy,nonn
|
|
|
AUTHOR
|
Leroy Quet, Aug 09 2009
|
|
|
STATUS
|
approved
|
| |
|
|