|
|
A030315
|
|
Write n in base 2, complement each digit (d -> 1-d) and append the complemented digits to the sequence.
|
|
3
|
|
|
1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
To get the initial terms:
0 -> 1
1 -> 0
2 = 10 -> 0, 1
3 = 11 -> 0, 0
4 = 100 -> 0, 0, 1
5 = 101 -> 0, 1, 0,
...
and concatenating 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, ... gives the start of the sequence. - N. J. A. Sloane, Jan 30 2023
|
|
MATHEMATICA
|
Table[IntegerDigits[n, 2]/.{1->0, 0->1}, {n, 0, 30}]//Flatten (* Harvey P. Dale, Jan 30 2023 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|