OFFSET
0,1
COMMENTS
The counting procedure and "eventually period 6 theorem" are introduced at A225660. Conjecture: if a(n) > 6, then a(n) is odd.
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..10000
EXAMPLE
To see that a(2) = 3, write 2 -> 001 -> 21 -> 011 -> 12 -> 011, so that the 3 nonrepeating vectors are (2), (0,0,1), (2,1). After (2,1) the cycle (1,2) -> (0,1) has length 2, so that the remainder of the sequence of vectors is periodic with period 2, hence also period 6.
MATHEMATICA
Clear[a, t]; Flatten[Table[a = {t = IntegerDigits[n, 3]}; While[Count[a, t] =!= 2, AppendTo[a, t = BinCounts[t, {0, Max[t] + 1, 1}]]]; First[Position[a, Last[a]]] - 1, {n, 0, 180}]] (* Peter J. C. Moses, May 09 2013 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, May 12 2013
STATUS
approved