I'm trying to create a programm that has the ability to calculate the most effective way of breaking down the number of stamps (3 and 5 cent) necessary for a consignment. That is - if a transmission costs, for example, 11 cents, it would take one 5 cent stamp and two 3 cent stamps. The minimum price for a transmission is 8 cents.
Can you please help me come across on how to calculate that?
Thank you.
EDIT: Strong inducti0n with 3- and 5-peso notes and can pay any number greater than 7.