Jump to content


Welcome to BrainDen.com - Brain Teasers Forum

Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account.
As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends.

Of course, you can also enjoy our collection of amazing optical illusions and cool math games.

If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top.
If you have a website, we would appreciate a little link to BrainDen.

Thanks and enjoy the Den :-)
Guest Message by DevFuse
 

Photo
- - - - -

Recursion


  • Please log in to reply
2 replies to this topic

#1 mmiguel

mmiguel

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • Gender:Not Telling

Posted 21 October 2012 - 10:43 AM

Find a closed-form expression for F(a,b) where:

F(a,b) = F(a-1,b) + F(a-1,b-1),
F(a,0) = 1 for all a
F(0,b) = 0 for all b

a and b are positive integers
  • 0

#2 Anza Power

Anza Power

    Junior Member

  • Members
  • PipPip
  • 80 posts

Posted 21 October 2012 - 02:55 PM

What does F(0,0) evaluate to? you need it for F(1,1)

Spoiler for

Edited by Anza Power, 21 October 2012 - 03:04 PM.

  • 0

#3 mmiguel

mmiguel

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • Gender:Not Telling

Posted 21 October 2012 - 07:53 PM

What does F(0,0) evaluate to? you need it for F(1,1)

Spoiler for


F(0,0) = 1
Sorry for leaving that out.

Nice work, you are correct!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users