Build a weight array by cycling a base sequence to a target length, applied right-to-left then reversed so it lines up with left-to-right digits.
Example: cycleWeights([2,3,4,5,6,7], 9) => [4,3,2,7,6,5,4,3,2]
Used by CL RUT (cycle 2..7 right-to-left).
Build a weight array by cycling a base sequence to a target length, applied right-to-left then reversed so it lines up with left-to-right digits.
Example: cycleWeights([2,3,4,5,6,7], 9) => [4,3,2,7,6,5,4,3,2]
Used by CL RUT (cycle 2..7 right-to-left).