a(n) = Sum{|d(i)-d(i-1)|: i=1,...,m}, where Sum{d(i)*4^i: i=0,1,...,m} is the base 4 representation of n.

A037836

a(n) = Sum{|d(i)-d(i-1)|: i=1,...,m}, where Sum{d(i)*4^i: i=0,1,...,m} is the base 4 representation of n.

Terms

    a(0) =0a(1) =0a(2) =0a(3) =1a(4) =0a(5) =1a(6) =2a(7) =2a(8) =1a(9) =0a(10) =1a(11) =3a(12) =2a(13) =1a(14) =0a(15) =1a(16) =2a(17) =3a(18) =4a(19) =1a(20) =0a(21) =1a(22) =2a(23) =3a(24) =2a(25) =1a(26) =2a(27) =5a(28) =4a(29) =3

External references