Answer: What Comes Next? #355

The answer is A: 128.

The finished pattern: 2, 4, 8, 16, 32, 64, 128.
The finished pattern.

The rule

Double the number each time (multiply by 2). Doubling makes numbers grow really fast!

The pattern as Python code

Here is a tiny Python program that follows the same rule. Type it into IDLE and run it to print the whole pattern, including the answer.

number = 2
for step in range(7):
    print(number)
    number = number * 2

When you run it, Python prints:

2
4
8
16
32
64
128

Pixel says: Try changing a number in the code and run it again. Can you make the pattern go on for 20 steps? Meow!