Let $n,m,k$ be positive integers with $$n\ge m\ge k\ge2,\quad n\ge 2k$$ and consider the cyclic graph with $n$ vertices. How many different ways are there to color each vertex either blue or red such that
- A total of $m$ vertices is colored red
- There are $k$ red segments in total
If one coloring can be turned into another by rotating the graph, these two are considered different colorings (except of course when a rotation by $0^\circ$ suffices).
Of course counting graphs where just one of these conditions hold isn't hard.
- There are ${n\choose m}$ different ways of coloring the graph such that exactly $m$ vertices are colorered red.
- There are $2{n\choose 2k}$ ways of coloring the graph such that there are exactly $k$ red segments.