Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to solve this recurrence with two variables.

RSolve[g[d, n] == 1 + g[d - 1, n] + g[d - 1, n - 1] && 
  g[d, 0] == g[0, n] == 0, g[d, n], {d, n}]

My boundary conditions are that g[d, 0] == g[0, n] == 0 for all d,n . But when I plug this in, I get the same input back with no error message.

Am I inputting the recurrence incorrectly? Or is Mathematica simply unable to find a closed form?

share|improve this question
I believe that you are using the correct syntax. – Szabolcs Feb 3 '13 at 21:45
It is a known sequence… – Dr. belisarius Feb 4 '13 at 2:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.