What is the next number in the following sequence?
2, 6, 14, 30
The pattern is f(n) = f(n-1)*2+2. Therefore, the next number is 62.
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the next number in the following sequence?

### Response:
The pattern is f(n) = f(n-1)*2+2. Therefore, the next number is 62.