In the context of your scenario, \( n \) represents the sample size, which is the number of residents surveyed by the researcher. According to the information provided, the researcher selected a random sample of 350 residents. Therefore, \( n \) is:
\[ n = 350 \]