Set {1, 2, 5, 11, 21}
also works.
You can start with a set of two or three elements that correspond to this property (any operation of adding two elements from the set {1,2,5}
gives you a unique sum) and includes only the next number, which is considered if adding current elements and this The new item also gives you unique amounts.
Run Example:
Suppose our starter set S
is S={1,2,5}
. Let U
be the set of all sums between two elements in S
Elements in S
give us unique sums 1+2=3
, 1+5=6
, 2+5=7
, so U={3,6,7}
.
Consider Appendix 11
to this set. We need to check that 1+11
, 2+11
and 5+11
all give us amounts that are not visible in U
, and they are all unique to each other.
1+11=12
, 2+11=13
, 5+11=17
.
Since 12
, 13
and 17
are the only sums between themselves and are not found in U
, we can update S
and U
as follows: S1 = {1,2,5,11}
U1 = {3,6,7,12,13,17}
.
You can do the same procedure for 21
, and you should (hopefully) get: S2 = {1,2,5,11,21}
U2 = {3,6,7,12,13,17,22,23,26,32}
.
If all you need is a speed dial, the solution Jason posted is much faster.