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

A037894

a(n)=(1/2)*Sum{|d(i)-e(i)|} where Sum{d(i)*8^i} is the base 8 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) =0a(5) =0a(6) =0a(7) =1a(8) =0a(9) =1a(10) =2a(11) =3a(12) =4a(13) =5a(14) =6a(15) =2a(16) =1a(17) =0a(18) =1a(19) =2a(20) =3a(21) =4a(22) =5a(23) =3a(24) =2a(25) =1a(26) =0a(27) =1a(28) =2a(29) =3

External references