Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Probability
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2005, 01:07 AM
chiachu chiachu is offline
Junior Member
 
Join Date: Jul 2004
Posts: 1
Default Recursion (homework) Problem

It isnt probabilty, but i was hoping you guys could help me out. Im trying to study for a midterm i have in a few days, and this problem has me completely stumped:

Suppose we have 10 cent stamps, 18 cent stamps and 28 cent stamps, each in unlimited suppply. Let f(n) be the number of ways of obtaining 'n' cents of postage if the order in which we put on stamps counts. For example, f(10) = 1 and f(20) = 1 (two 10 cent stamps), while f(28) = 3 (one 28 cent stamp, or a 10 cent stamp followed by and 18 cent, or a 18 cent stamp followed by a 10 cent).

If n > 29, derive a recurrance for f(n)

Thanks in advance for any help.
Reply With Quote
  #2  
Old 05-20-2005, 06:10 AM
uphigh_downlow uphigh_downlow is offline
Member
 
Join Date: May 2005
Posts: 88
Default Re: Recursion (homework) Problem

From a quick look, it seems like

F(n) = F(n-10) +F(n-18) +F(n-28)
Different number of ways of arriving at n.
Look at it as a tree that branches out

ps: dunno if this forum should be an easy out for solving homework problems [img]/images/graemlins/smile.gif[/img]

let me just add that its possible I'm wrong [img]/images/graemlins/laugh.gif[/img]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.