Условие:
All of the integers from 1 to 20 are written in a row. In how many different ways can you circle exactly three of the numbers so that the product of the circled numbers is even?

All of the integers from 1 to 20 are written in a row. In how many different ways can you circle exactly three of the numbers so that the product of the circled numbers is even?
Чтобы решить задачу, начнем с определения условий, при которых произведение трех выбранных чисел будет четным. Произведение будет четным, если хотя бы одно из выбранных чисел четное.