Quote:
Originally Posted by Tolnaftate2004
I think you're close. 1.666 may be due to treating the circular lot as if it were linear? I can't really tell...
|
These would be the full combinations (N=4):
1122
0110
2211
(2 + 1 + 2) / 3 = 1.666_
If we don't care about the order:
1111
0110
(2 + 1) / 2 = 1.5
Like in your example. The code I have edited in there ignores the order so I do get 1.5 with it, problem is that it has to go through all the permutations first so it scales horribly.