A pattern of numbers follows a specific rule. The first four numbers in the pattern are 2, 5, 10, and 17. To find the next number in the sequence, we need to determine the relationship between the numbers.
Observe how each number is generated:
It seems that the amount added to each consecutive number is increasing by 2. Based on this pattern, what will be the next number in the sequence?