Ask your own question, for FREE!
Mathematics 10 Online
OpenStudy (anonymous):

Need help with a discrete math story problem.

OpenStudy (anonymous):

OpenStudy (anonymous):

@phi

OpenStudy (phi):

any ideas ?

OpenStudy (anonymous):

Well I would need to write some kind of equation.

OpenStudy (anonymous):

A: if B = bills, D = dimes, q = quarters, n = nickles I know that B = 2D + 1Q N = Q

OpenStudy (anonymous):

For machine A

OpenStudy (anonymous):

Machine B: Q = B + 2N D = B

OpenStudy (phi):

I would try to find what I have after using A then B then do it a few more times, and hope I can see a pattern...

OpenStudy (anonymous):

Also, I have some notes which I don't really understand.

OpenStudy (anonymous):

Ok, I tried that. After one trip to machine A changing a dollar bill: I get 2D + 1Q I get 2B and B + 2N in machine B. So altogether I have 3B + 2N

OpenStudy (phi):

they almost ring a bell with me. But I would have to look this stuff up... I don't know it off the top of my head.

OpenStudy (anonymous):

So I know that after one trip to both the machines, 1B becomes 3B + 2N and if I go back to the machine I assume 3B would become 9B + 3N and the 2N would become 2Q which would become 2B + 4N So I would be left with 11B + 7N after the second time.

OpenStudy (anonymous):

I just don't understand how to find the equation to calculate the amount each time we loop.

OpenStudy (phi):

I get 11B + 10N the 2nd time through

OpenStudy (anonymous):

oh woops, I changed the B into Ds and Ns instead of Ds and Qs

OpenStudy (anonymous):

So in the notes, Nn+1 = 2(Bn + Nn) Bn+1 = 3Bn + Nn These equations work when I plug the numbers in to give us the next B and N

OpenStudy (phi):

yes. and your notes find a "characteristic equation" with roots 1 and 4 That should be helpful, but I would have to study up on this stuff...

OpenStudy (anonymous):

So Nn+2 = 5Nn+1 - 4Nn N > 0 is the characteristic function?

OpenStudy (phi):

yes. See http://www.wikihow.com/Solve-Recurrence-Relations method three for how I think you solve this.

OpenStudy (phi):

oops, method 4

OpenStudy (anonymous):

Hmm, this looks complicated. :/

OpenStudy (phi):

Let me look at a few minutes. Meanwhile, read over Method 4: Linear

OpenStudy (anonymous):

ok

OpenStudy (phi):

In your problem, your characteristic equation for the number of nickels N is \[ N_{n+2} = 5N_{n+1} - 4N_n \\ x^2 - 5x + 4 = 0 \] which factors \[ (x-1)(x-4)=0 \\ x=1, \ x=4 \] the roots are 1 and 4 according to method 4 (why this works, I don't know) \[ N_n= c_1 1^n + c_2 4^n \] where 1 and 4 are the roots 1^n is always 1 so this is the same as \[ N_n= c_1 + c_2 4^n \]

OpenStudy (phi):

now we need to find the constants. when n=1 we found 3B + 2N , so N = 2 when n=2 we found 11B+10N, so N=10 at n=2 use those numbers to find c1 and c2

OpenStudy (anonymous):

Do I need to use step 6 for this?

OpenStudy (anonymous):

or am I solving for the equation above?

OpenStudy (phi):

same idea. but for your problem we use your numbers.

OpenStudy (phi):

in other words, \[ c_1 + c_2 4^n=N_n\\ n=1, \ c_1 + c_2 4^1= 2 \\ n=2,\ c_1 + c_2 4^2= 10\]

OpenStudy (anonymous):

c1 = 2-c2(4) c2(8) + 2 - c2(4) = 10 c2(32) = 8 c2 = 1/4

OpenStudy (anonymous):

c1 = 10 - c2(8) c1 = 10 - 2 c1 = 8

OpenStudy (anonymous):

Would that be right?

OpenStudy (phi):

I think 4^2 = 16

OpenStudy (anonymous):

oops

OpenStudy (phi):

I would just subtract the 2 equations

OpenStudy (anonymous):

Not sure how to do that

OpenStudy (anonymous):

c1 = 2 - c2(4) 2 - c2(4) + c2(16) = 10 2 - c2(20) = 10 c2 = -8/20

OpenStudy (phi):

you can use substitution, also. but for subtraction: \[ c_1 + 16 c_2 = 10\\ - c_1 -4 c_2 = -2\\ ----------\\ 12 c_2=8\\ c_2= \frac{8}{12}=\frac{2}{3} \]

OpenStudy (anonymous):

ah nice, that is much quicker, lol. Guess I still didn't get the right answer.

OpenStudy (anonymous):

ah ok, I see the mistake.

OpenStudy (phi):

you added 4 instead of subtracting 4 in your work. you should get 2- 12 c2 = 10

OpenStudy (anonymous):

c1 = 14/3

OpenStudy (phi):

your algebra is unacceptable

OpenStudy (phi):

c1 = 2 - c2(4) c1 = 2 - ⅔ *4= 2 - 8/3 = 6/3 - 8/3 = -2/3

OpenStudy (anonymous):

I made another dumb mistake, sorry.

OpenStudy (anonymous):

Multiplied by the wrong number in the first step.

OpenStudy (phi):

so the number of nickels is at step n is \[ N_n = \frac{2(4^n -1)}{3} \] the number of bills B is 1 more than the number of N, so we can say \[ B_n= \frac{2(4^n -1)}{3}+1= \\\frac{2\cdot 4^n -2}{3}+\frac{3}{3}= \\\frac{2\cdot 4^n +1}{3} \]

OpenStudy (anonymous):

Awesome, thank you so much for the help.

OpenStudy (phi):

now when you learn why, explain how this works, because it is a mystery to me

OpenStudy (anonymous):

haha, if I ever learn how I will let you know. :D

OpenStudy (anonymous):

This was the last problem on my second to last homework in the class though, since class is almost finished, I doubt I will ever figure out exactly how this works. :/

OpenStudy (anonymous):

But thanks again! I will try to be less dull when it comes to algebra in the future. -_-

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!