yes the base case would be the lowest possible amount, in this case, 24.Originally posted by: Tchen811
this is where I get stuck....what should the base case be? Is it like assume n=24? since the question asks for 24 or more?
Originally posted by: TuxDave
first show that you can make 24 cents with 5 and 7 cent stamps. That's your base case. Then you gotta prove that given that you can do it for n cents, you can do it with n+1 stamps. This one isn't very mathematical. Here's a hint... 4*5 = 20... 3*7 = 21.. oooooh....
Originally posted by: lukatmyshu
Originally posted by: TuxDave
first show that you can make 24 cents with 5 and 7 cent stamps. That's your base case. Then you gotta prove that given that you can do it for n cents, you can do it with n+1 stamps. This one isn't very mathematical. Here's a hint... 4*5 = 20... 3*7 = 21.. oooooh....
You can't just use normal induction ... I'm fairly sure you have to use strong induction (in case you're unaware instead of assuming that
P(N) is true you assume that P(1....N) is true ... so that showing that you can derive P(N+1) from P(N) you have to derive P(N+1) from ANY P(a) s.t. a is less than or equal to N. makes your life a lot easier