Gene Wed, 04 Jan 2006 21:54:41 -0800
Indeed di-1 mod di = 0 is sufficient to make the greedy algorithm work, but 50 mod 20 = 10!