%I A135818
%S A135818 1,0,1,2,0,3,1,1,4,2,2,2,0,5,3,3,3,1,3,1,1,6,4,4,4,2,4,2,2,4,2,2,2,0,7,
%T A135818 5,5,5,3,5,3,3,5,3,3,3,1,5,3,3,3,1,3,1,1,8,6,6,6,4,6,4,4,6,4,4,4,2,6,4,
%U A135818 4,4,2,4,2,2,6,4,4,4,2,4,2,2,4,2,2,2,0,9,7,7,7,5,7,5,5,7,5,5,5,3,7,5,5
%N A135818 Number of 1's (or A's) in the Wythoff representation of n.
%C A135818 See A135817 for references and links for the Wythoff representation for
n>=1.
%F A135818 a(n)= number of applications of Wythoff's A sequence A000201 needed in
the unique Wythoff representation of n>=1.
%e A135818 6 = A(A(A(B(1)))) = AAAB = `1110`, hence a(6)=3.
%Y A135818 Cf. A135817 (lengths of Wythoff representation), A007895 (number of 0's
(or B's) in the Wythoff representation).
%Y A135818 Sequence in context: A047983 A070812 A061865 this_sequence A078804 A071465
A051709
%Y A135818 Adjacent sequences: A135815 A135816 A135817 this_sequence A135819 A135820
A135821
%K A135818 nonn,easy
%O A135818 1,4
%A A135818 Wolfdieter Lang (wolfdieter.lang(AT)physik.uni-karlsruhe.de) Jan 21 2008
|