|
Search: id:A059941
|
|
|
| A059941 |
|
Take the n-th number which is just a sequence of 1's and 2's (A007931): if the first k digits in order are the same as the last k digits in order then put 1 in the kth-from-right digit of a(n), otherwise put a zero. |
|
+0 4
|
|
| 1, 1, 11, 10, 10, 11, 111, 100, 101, 100, 100, 101, 100, 111, 1111, 1000, 1001, 1000, 1001, 1010, 1001, 1000, 1000, 1001, 1010, 1001, 1000, 1001, 1000, 1111, 11111, 10000, 10001, 10000, 10011, 10000, 10001, 10000, 10001, 10010, 10101, 10000
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
EXAMPLE
|
a(35)=10011 since the 35th number with 1's and 2's is 11211, the fist digit and last digit are the same (1), the first two and the last two are the same (11), the first three and last three are not (112 and 211), the first four and last four are not (1121 and 1211) and the first five and last five are (11211).
|
|
CROSSREFS
|
A059942 is this sequence translated from binary to decimal. Cf. A007931, A059943.
Sequence in context: A004452 A112952 A070561 this_sequence A086100 A004283 A106421
Adjacent sequences: A059938 A059939 A059940 this_sequence A059942 A059943 A059944
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Henry Bottomley (se16(AT)btinternet.com), Feb 14 2001
|
|
|
Search completed in 0.002 seconds
|