Write the first 10 terms in the sequence

Answer:
6 7 3 2 1
12 9 8 5 2
18 11 15 10 3
24 13 24 17 4
30 15 35 26 5