a(n)=(1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*5^i} is the base 5 representation of n and e(i) are the digits d(i) in reverse order.

A037891

a(n)=(1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*5^i} is the base 5 representation of n and e(i) are the digits d(i) in reverse order.

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) =0a(26) =1a(27) =2a(28) =3a(29) =1

External references