Find all possible solutions to how many people voted on a quiz

36 Views Asked by At

Imagine that there's a quiz on a website and I am only able to know the percentage results. How can I predict all possible solutions to how many people voted?

For example:

Quiz 1:

Candidate A: 33,33% votes

Candidate B: 33,33% votes

Candidate C: 33,33% votes

It's easy to see that 3 or 6 or 9 or (multiple of 3) people voted.

But what about Quiz 2:

Candidate A: 34,09% votes

Candidate B: 52,76% votes

Candidate C: 13,15% votes

How can I predict possible solutions? How to deal with aproximation/truncation of the percentages?

I want to know a general solution, not a solution for my Quiz 2.

Thanks