tracing the numbers in sequence to come to unique paths