login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A317947
Concatenate n and n-1 in binary.
2
10, 101, 1110, 10011, 101100, 110101, 111110, 1000111, 10011000, 10101001, 10111010, 11001011, 11011100, 11101101, 11111110, 100001111, 1000110000, 1001010001, 1001110010, 1010010011, 1010110100, 1011010101, 1011110110, 1100010111, 1100111000, 1101011001, 1101111010, 1110011011, 1110111100
OFFSET
1,1
LINKS
FORMULA
a(n) = A007088(n-1)+10^(1+A000523(n-1))*A007088(n) for n >= 2. - Robert Israel, Aug 12 2018
MAPLE
f:= proc(n) local A;
A:= convert(n-1, binary);
10^length(A)*convert(n, binary)+A
end proc:
f(1):= 10:
map(f, [$1..100]); # Robert Israel, Aug 12 2018
PROG
(PARI) zbinary(n) = if (n, binary(n), [0]);
a(n) = fromdigits(concat(zbinary(n), zbinary(n-1))); \\ Michel Marcus, Aug 12 2018
CROSSREFS
Cf. A000523, A007088, A127423 (base 10 version).
Sequence in context: A279874 A279251 A279123 * A290412 A288903 A289038
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Aug 11 2018
EXTENSIONS
More terms from Robert Israel, Aug 12 2018
STATUS
approved