Number of twos minus number of ones in the first 10^n entries of the Kolakoski sequence, A000002.

A289324

Number of twos minus number of ones in the first 10^n entries of the Kolakoski sequence, A000002.

Terms

    a(0) =-1a(1) =0a(2) =2a(3) =-4a(4) =8a(5) =56a(6) =28a(7) =-92a(8) =-1350a(9) =-2446a(10) =4658a(11) =-3174a(12) =-101402a(13) =-16318a(14) =-632474a(15) =-1954842a(16) =10724544a(17) =45041304a(18) =111069790a(19) =548593100a(20) =1818298480

External references