I have A containers. Each container has one coin of equal denomination (1 unit). I have B items to buy each costing 2, 3, 4, 6, 8 units.

I need to buy some items such that it follows something like a normal curve. ie. least cost and high cost items (say 2 , 8) are given lesser priority than nominal cost items (say 4).

I need to buy as many items as possible.

I know that I should buy least cost item to get maximum number of items. But the aim is not the only aim...


Let the number of items to be bought be near 60. And let N be 14.