I'm not sure of the best way to ask this question but I will try with an example of my problem:
I have three numbers, 3 and 5 and x.
x always starts as zero.
There are two possible events that can occur:
- Someone buys an apple -> I add
3tox - Someone buys a banana -> I add
5tox
If someone makes a purchase then I can use mod3, mod5 and mod8 to determine if they bought an apple, a banana or both.
This is fine for any number lower than 15. Once we get to 15 and above we do not know whether someone only bought apples, only bought bananas or bought a combination of both.
So my question is, are there any three numbers I can always use to determine if they bought just apples, just bananas or both?
Or is there a better way of doing this all together?