%I #6 Mar 30 2012 18:39:22
%S 0,1,3,2,2,3,1,0,0,1,3,6,6,7,9,8,8,9,11,14,18,19,21,24,24,25,27,26,26,
%T 27,25,24,24,21,19,18,18,19,21,20,20,21,19,18,18,19,21,24,24,25,27,26,
%U 26,27,25,24,24,21,19,18,14,11,9,8,8,9,7,6,6,3,1,0,0,1,3,2,2,3,1,0,0,1
%N Fractal mountains in base 3.
%C The graph of sequence presents fractal aspects.
%F a(n)=a(n, 3) where a(n, m)=sum(i=0, n, sum(k=0, i, (-1)^k*(floor(i/m^k)-m*floor(i/m^(k+1)))))
%Y Cf. A005536 (fractal mountains in base 2).
%K nonn
%O 0,3
%A _Benoit Cloitre_, Mar 29 2004