22.11.2010, 19:43
Hy. I am looking for a type of numerals that given any addition between themselves, you never get the same result twice.
Trying to use them as unique identifiers for a 'shopping cart' project.
And i want to be able to tell what the user bought by the sum of all the ids of the products he purchased.
EX:
5 - Shampoo
7 - Soap
11 - Toothpaste
5+7=12 => Shampoo & Soap
5+11=16 => Shampoo & Toothpaste
7+11=18 => Soap & Toothpaste
Anyone got the full list of all those numbers, or atleast a link?
Trying to use them as unique identifiers for a 'shopping cart' project.
And i want to be able to tell what the user bought by the sum of all the ids of the products he purchased.
EX:
5 - Shampoo
7 - Soap
11 - Toothpaste
5+7=12 => Shampoo & Soap
5+11=16 => Shampoo & Toothpaste
7+11=18 => Soap & Toothpaste
Anyone got the full list of all those numbers, or atleast a link?