OFFSET
1,3
COMMENTS
The ternary expansion of the numbers in this sequence correspond to a valid linear gear train configurations with pairwise intermeshing of neighboring gears: 0 for an idler gear, 1 for a gear driven in rotational direction A, 2 for a gear driven in rotational direction B.
A gear train is valid if it has no contradictions, where a contradiction occurs if two meshed gears rotate in the same direction.
The rotation directions for the whole train are determined by the most significant ternary digit 1 or 2.
Any later driven gears must be in the same direction as the most significant when at an even distance away from there and the opposite direction when an odd distance away.
EXAMPLE
32 is a term since its ternary expansion is
ternary 1 0 1 2
direction A B A B
The direction for the 0 gear is determined by its preceding A, and the whole train has valid alternating A,B adjacent pairs.
11 is not a term because its ternary expansion 102 does not follow the pattern ABA.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Frederik P.J. Vandecasteele, May 25 2025
STATUS
approved
