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
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
Recursion
Started by mmiguel, Oct 21 2012 10:43 AM
2 replies to this topic
#1
Posted 21 October 2012 - 10:43 AM
#2
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.
#3
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 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users






