Problem: Change for a Dollar (click here to see the problem statement)


Change for a Dollar.
My solution.

I first attempted to set up a system of equations; however, I never determined a set of equations that established critical relationships between coin combinations.


I then began to build a table of possible combinations given a starting condition such as 1 Quarter. This did not seem fruitful, that is I was not sure that I came up with a method of systematically establishing all possibilities. It did give me the idea to begin with a starting condition of one coin and determine the maximum total value with some number of one of the other coins.

The table below shows the maximum when starting with 1, 2, or 3 Quarters and the maximum number of either Dimes, Nickels, or Pennies without being able to make change for a dollar:

 

Quarters

Dimes

Nickels

Pennies

Total

1

9

1.15

1

14

0.95

1

74

0.99

2

4

0.90

2

9

0.95

2

49

0.99

3

4

1.15

3

4

0.95

3

24

0.99

The table below shows the maximum when starting with Dimes:

Dimes

Quarters

Nickels

Pennies

Total

1

3

0.85

1

19

1.05

1

89

0.99

2

3

0.95

2

17

1.05

2

79

0.99

3

3

1.05

3

15

1.05

3

69

0.99

4

3

1.15

4

13

1.05

4

59

0.99

5

1

0.75

5

9

0.95

5

49

0.99

6

1

0.85

6

7

0.95

6

39

0.99

7

1

0.95

7

5

0.95

7

29

0.99

8

1

1.05

8

3

0.95

8

19

0.99

9

1

1.15

9

1

0.95

9

9

0.99

In both of the above tables, the largest overall amount obtained is $1.15. Note also that the results in the two tables represent only two combinations that achieve this maximum value.

The table below shows the maximum values when starting Nickels:

Nickels

Quarters

Dimes

Pennies

Total

1

3

0.80

1

9

0.95

1

94

0.99

2

3

0.85

2

8

0.90

2

89

0.99

3

3

0.90

3

8

0.95

3

84

0.99

4

3

0.95

4

7

0.90

4

79

0.99

5

2

0.75

5

7

0.95

5

74

0.99

6

2

0.80

6

6

0.90

6

69

0.99

7

2

0.85

7

6

0.95

7

64

0.99

8

2

0.90

8

5

0.90

8

59

0.99

9

2

0.95

9

5

0.95

9

54

0.99

10

1

0.75

10

4

0.90

10

49

0.99

11

1

0.80

11

4

0.95

11

44

0.99

12

1

0.85

12

3

0.90

12

39

0.99

13

1

0.90

13

3

0.95

13

34

0.99

14

1

0.95

14

2

0.90

14

29

0.99

15

0

0.75

15

2

0.95

15

24

0.99

16

0

0.80

16

1

0.90

16

19

0.99

17

0

0.85

17

1

0.95

17

14

0.99

18

0

0.90

18

0

0.90

18

9

0.99

19

0

0.95

19

0

0.95

19

4

0.99

Note that none of the totals in the "Nickels" table exceeds $1.15. Also note that the maximum value obtained with a combination of Pennies and another coin is always $.99, so we need not construct a table assuming Pennies as our 'starting' coin.

aaa

Again, the greatest overall totals with combinations of two kinds of coins is $1.15:

1 Quarter, 9 Dimes, 0 Nickels, 0 Pennies = 1.15
&
3 Quarters, 4 Dimes, 0 Nickels, 0 Pennies = 1.15

I assumed this $1.15 to be a "maximum base": I needed to add to this base.

Note that in both cases, the addition of a single Nickel would create the ability to make change for a dollar:

1 Quarter + 1 Nickel + 7 (of the 9) Dimes = .25 + .05 + .70 = 1.00
3 Quarters + 1 Nickel + 2 (of the 9) Dimes = .75 + .05 + .20 = 1.00

I would be in a similar situation should I add 5 or more Pennies. The most I can add then, is four Pennies, for a total of $1.19.