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

A037838

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

Terms

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

External references