Answer: What Comes Next? #434

The answer is D: 6.

The finished pattern: 384, 192, 96, 48, 24, 12, 6.
The finished pattern.

The rule

Halve the number each time (divide by 2). In Python, // divides and gives a whole number.

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 = 384
for step in range(7):
    print(number)
    number = number // 2

When you run it, Python prints:

384
192
96
48
24
12
6

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