login
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.
0

%I #6 Mar 30 2012 18:56:32

%S 0,0,0,0,1,0,1,2,3,2,1,0,1,2,3,2,1,0,1,4,3,2,1,0,1,0,1,2,3,1,0,1,2,3,

%T 1,0,1,2,3,1,0,1,2,3,1,0,1,2,3,2,1,0,1,2,2,1,0,1,2,2,1,0,1,2,2,1,0,1,

%U 2,2,1,0,1,2,3,2,1,0,1,3,2,1,0,1,3,2,1,0,1,3

%N 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.

%K nonn,base

%O 1,8

%A _Clark Kimberling_