Start with all red side up. The goal is to get them all blue side up in the fewest number of rounds.
A round consists of flipping exactly N of them.
Find a rule for when the puzzle is impossible for given values of (T,N) with N≤T.
Find a rule for the number of rounds it will take when the puzzle is possible.