Suppose that I have 4-by-6 factorial design where both factors are within-subject variables, and I want to perform a repeated-measures ANOVA on the data. Using GPower, I calculate the sample size required to achieve 80% power for an effect size of F = 0.25 for the interaction between the two factors. I input the numerator df as 15 ((4-1) * (6-1)) and number of groups as 24 (4 * 6). GPower outputs a total sample size of 315.

Question 1: Since this is a within-subjects design, should I divide the total sample size by the number of groups to find the actual sample size I need for my design? i.e., 315 / 24 ≈ 14 subjects in total for the whole analysis.
Question 2: Should I also calculate sample sizes for the two main effects? Is it possible for main effects to require larger sample sizes than the interaction term, and if so, should I pick the largest sample size among the effects I am interested in?