A light pulse starts at a corner of a reflective square. It bounces around inside the square, reflecting off the square's perimeter $n$ times before ending in a different corner. The path of the light pulse, when traced, divides the square into exactly 2021 regions. Compute the smallest possible value of $n$.

Let's think step by step and output the final answer within \boxed{}.
user