I have a two-dimensional recurrence equation, help me solve this:
p[n,m]=p[n,m-1]+p[n-1,m]+p[n-1,m-1]*(n-1)
p[n,0]=1
p[0,m]=0
p[0,0]=0
I generated these numbers for 1<=n,m<=6:
n row, m column
1 1 1 1 1 1
3 5 7 9 11 13
6 17 34 57 86 121
10 45 130 289 546 925
15 100 410 1219 2921 6030
21 196 1106 4375 13391 34026
Firstly I saw, that p[n,1] = n*(n+1)/2
Next, fix n = 2, look for the differences between p[n,i] and p[n,i-1].
They are all equals 2 = 2! (remember that)
Now, fix n = 3, also look for the differences between p[n,i] and p[n,i-1]
We have 11, 16, 23, 29. Okay so now look for the differences between differences :)
They are all equals 6 = 3!
Now, fix n = 4, also (hah) look for the differences between p[n,i] and p[n,i-1]
We have 35, 85, 159, 257. Look for the differences between differences.
We have 50, 74, 98. Also look for the differences between differences.
They are all equals 24 = 4!
Now, fix n = 5, also (hah) look for the differences between p[n,i] and p[n,i-1]
85, 310, 809, 1702 ->
225, 499, 893 ->
274, 394 ->
120 = 5!
And so on...
That's all for now :(
updated: I found oeis sequence which is very similar to mine!