%I A060585
%S A060585 0,1,1,3,2,3,3,3,2,6,7,7,5,4,5,7,7,6,6,7,7,7,6,7,5,5,4,12,13,13,15,14,
%T A060585 15,15,15,14,10,11,11,9,8,9,11,11,10,14,15,15,15,14,15,13,13,12,12,13,
%U A060585 13,15,14,15,15,15,14,14,15,15,13,12,13,15,15,14,10,11,11,11,10,11,9,9
%N A060585 Write n in base 3, then (working from left to right) if the k-th digit
of n is equal to the corresponding digit to the left of the k-th
digit of a(n) then 1 is the k-th digit of a(n), otherwise the k-th
digit of a(n) is 0, then read result as a base 2 number.
%C A060585 A ternary to binary switch.
%F A060585 a(n) = 2a([n/3])+A060584(n) = A060586(A060587(n)).
%e A060585 a(76) = 10 since 76 written in base 3 is 2211 and looking for changing
digits produces 1010 which read as if in binary is 10.
%Y A060585 k appears A001316(k) times in the sequence.
%Y A060585 Sequence in context: A054263 A124874 A016459 this_sequence A114451 A080428
A120004
%Y A060585 Adjacent sequences: A060582 A060583 A060584 this_sequence A060586 A060587
A060588
%K A060585 base,nonn
%O A060585 0,4
%A A060585 Henry Bottomley (se16(AT)btinternet.com), Apr 04 2001
|