
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In a certain unit, there are 18 elderly, 12 middle-aged, and 6 young individuals. Now, if a sample of size $n$ is drawn using systematic sampling, no individuals need to be removed if stratified sampling is used. However, if the sample size is increased by 1, one individual needs to be removed from the population when using systematic sampling. Determine the value of $n$.

Present the answer in LaTex format: \boxed{Your answer}
user