I\'m looking for all combinations of numeric sequences in the form [a, b, c], where a, b, c can take values from the set (0,1,2) and satisfy the condition that each next ele