Let us consider mixtures of three substances: A, B and C. A mixture can be described by a ratio of the amounts of A, B, and C in it, i.e., . For example, a mixture described by the ratio contains A, B and C.
For the purposes of this problem, we cannot separate the individual components from a mixture. However, we can combine different amounts of different mixtures to form mixtures with new ratios.
For example, say we have three mixtures with ratios , and . By mixing units of the first, units of the second and units of the third, we get a new mixture with ratio , since: +
However, with the same three mixtures, it is impossible to form the ratio , since the amount of B is always less than the amount of C.
Let be a positive integer. Suppose that for every triple of integers with and , we have a mixture with ratio . Let be the set of all such mixtures.
For example, contains the mixtures with the following ratios:
Let be the number of subsets of which can produce the mixture with ratio , i.e., the mixture with equal parts A, B and C.
We can verify that , , and .
Find .
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.