super easy question. what's the pattern??? I thought it might be adding a prime number each time.

Hey there! :)
Answer:
f(n) = n²
Step-by-step explanation:
Let n be the term number of this pattern and f(n) the number of shapes: Examine the pattern shown:
When n = 1, f(n) = 1.
When n = 2, f(n) = 4.
When n = 3, f(n) = 9.
The pattern of this sequence is:
f(n) = n².
This means that the # of shapes shown is the square of the term number.