Answer: The value of n is 321.
Explanation:
Since we have given that
Sample size = 321
Percentage of them developed headaches = 7%
So, the value of p would be

Now, the value of q would be

And the mean for the number of subjects who develop headaches would be

and the standard deviation would be

Hence, the value of n is 321.