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

A037837

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

Terms

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

External references