0,3

Bounded, conjectured maximum is a(257) = 17.

Robert Israel, Table of n, a(n) for n = 0..10000

A[0]:= 0;

for n from 1 to 1000 do

if n mod 3 = 0 and A[n/3] mod 3 = 0 then A[n]:= A[n/3]/3

else A[n]:= A[n-1]+1

fi od:

seq(A[i], i=0..1000); # Robert Israel, Apr 25 2017

Sequence in context: A338496 A053830 A033929 * A023125 A319657 A255594

Adjacent sequences: A025479 A025480 A025481 * A025483 A025484 A025485

nonn

David W. Wilson

approved