Indeed di-1 mod di = 0 is sufficient to make the greedy algorithm work,
but 50 mod 20 = 10!

Reply via email to