(New page: Category:MA375Spring2009Walther Back 7.1 / #36 a) Say there are a_n ways to pay a toll of n cents. Since order matters, let us look at the last...)
 
 
Line 1: Line 1:
 
[[Category:MA375Spring2009Walther]]
 
[[Category:MA375Spring2009Walther]]
 +
[[Category:MA375]]
 +
[[Category:math]]
 +
[[Category:discrete math]]
 +
[[Category:problem solving]]
  
[[MA 375 Spring 2009 Walther Week 5|Back]]
+
=[[MA375]]: [[MA_375_Spring_2009_Walther_Week_5| Solution to a homework problem from this week or last week's homework]]=
 +
Spring 2009, Prof. Walther
 +
----
  
 
7.1 / #36
 
7.1 / #36
Line 18: Line 24:
 
a_40 = 21 + 13 = 34
 
a_40 = 21 + 13 = 34
 
a_45 = 34 + 21 = 55
 
a_45 = 34 + 21 = 55
 +
----
 +
[[MA375_%28WaltherSpring2009%29|Back to MA375, Spring 2009, Prof. Walther]]

Latest revision as of 09:21, 20 May 2013


MA375: Solution to a homework problem from this week or last week's homework

Spring 2009, Prof. Walther


7.1 / #36

a) Say there are a_n ways to pay a toll of n cents. Since order matters, let us look at the last coin that is used to pay the n cents. It can be either a nickel or a dime. If it is a nickel, there are a_(n-5) ways to pay the toll, since the nickel accounts for 5 cents of the n and we can therefore divide the remaining n-5 cents in any way. If it is a dime, there are a_(n-10) ways by the same reasoning. Thus, our recursive relation is a_n = a_(n-5)+a_(n-10)

b) Simply apply the recursion until a_45. The initial conditions are: a_5 = 1 (since you can only pay that with a nickel) a_10 = 2 (nickel-nickel or just one dime) a_15 = 1 + 2 = 3 a_20 = 3 + 2 = 5 a_25 = 5 + 3 = 8 a_30 = 8 + 5 = 13 a_35 = 13 + 8 = 21 a_40 = 21 + 13 = 34 a_45 = 34 + 21 = 55


Back to MA375, Spring 2009, Prof. Walther

Alumni Liaison

ECE462 Survivor

Seraj Dosenbach