Let $G$ a group and $n \in \mathbb{Z}_{>0}$ an integers with the following properties. For each subgroup $H < G$ such that $H \not= G$, the integer $n \mid [G:H]$. Show that, for each finite $G$-set ($G$-action) on $X$, we have $|X| \equiv |X^G| \pmod n$
I think I can suppose $|X^G| \geq n$, and prove there exists $H < G$ , $H \ne G$, the integer $n \nmid [G:H]$.
I'm on this problem for a while now. Does someone could give me a little hint?
Here is a hint: show that $n$ divides $|X \setminus X^G|$. To show this, let $G$ act on $X$ and show that every orbit has length $1$ or a multiple of $n$.
The following spoiler contains another hint: