What is the formula for this pattern.
Term: 1, 2, 3, 4, 5, 6, 7, 8, 9
Number: 1, 2, 3, 1, 2, 3, 1, 2, 3