Integer Solutions to Linear Systems

AI Thread Summary
The discussion centers on solving a linear system of equations related to a jar of coins containing dimes, nickels, and pennies, with a total of 98 coins valued at $6.49. Two equations have been established: d + n + p = 98 and 10d + 5n + p = 649, but a third equation is needed to find integer solutions. Participants suggest that p can be treated as a free variable, leading to different scenarios based on its assumed values, such as 4 or 9. The importance of ensuring that all variables represent whole numbers is emphasized, as fractional values do not make sense in this context. Ultimately, the discussion concludes with the understanding that the solutions depend on the integer constraints of the variables involved.
s2huang
Messages
2
Reaction score
0

Homework Statement


We were asked to solve it using Augmented matrix. I just need one more equation though.
A jar of coins contains only dimes, nickels, and pennies. There are 98 coins in the jar, and the total value of the coins is $6.49.
Set up the system of equations representing this system, in the variables d, n, and p.

Homework Equations


1 dime = 10 cents
1 nickel = 5 cents
1 penny = 1 cent

The Attempt at a Solution


I set up two equations:
d+n+p = 98
10d + 5n + p = 649

but I can't find the third equation.

p is a free variable.
the 9 in 649 is the clue i think because only nickels and pennies can add up to 9
and there are two possible ways:
1 nickel + 4 pennies, OR
9 pennies
So d and n depend on p but I don't know how to express it in an equation.

I tried 5n+p=9 but it didn't work.
I tried to substitute 5n=9-p for n, but then it's not linear algebra and the answer was not correct.
 
Physics news on Phys.org
s2huang said:

Homework Statement


We were asked to solve it using Augmented matrix. I just need one more equation though.
A jar of coins contains only dimes, nickels, and pennies. There are 98 coins in the jar, and the total value of the coins is $6.49.
Set up the system of equations representing this system, in the variables d, n, and p.

Homework Equations


1 dime = 10 cents
1 nickel = 5 cents
1 penny = 1 cent

The Attempt at a Solution


I set up two equations:
d+n+p = 98
10d + 5n + p = 649

but I can't find the third equation.

p is a free variable.
the 9 in 649 is the clue i think because only nickels and pennies can add up to 9
and there are two possible ways:
1 nickel + 4 pennies, OR
9 pennies
So d and n depend on p but I don't know how to express it in an equation.

I tried 5n+p=9 but it didn't work.
I tried to substitute 5n=9-p for n, but then it's not linear algebra and the answer was not correct.

You could also have 14 or 19 or in general ? pennies. You could express that as a formula.
Don't worry you don't always have to express everything as a formula.
Although you can't eliminate from the equations in the ordinary way to reduce it to one unknown, you can reduce it to two unknowns - in different ways but try the simplest first. You can then try the same sort of logic - properties of whole numbers and divisibility etc.
It is not guranteed that there is a unique solution.
 
Thank you. I think I salved it!
It should be two equations:
x+y+z=98
10x+5y+z=649

From the Augmented Matrix I got:
y=331/5 - 9/5(z)
x=31.8+0.8z

We just pretend that z is a constant ie. a free variable.
 
If you set p = 4, 9, whatever, then you must adjust the two equations accordingly.
For instance, ifyou assume p = 4, then the equations become:

d + n = 94
10d + 5n = 645

you can then solve for d and n and get a unique solution for p = 4.
If p is assumed to be 9, then there will be a different number of dimes and nickles.

The solutions to d,n,p only have meaning if each is an integer. In order to satisfy the total amount of the change, p is restricted in which values it can assume, i.e., 4, 9, 14, etc. You can't have 0.8 of a dime.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top