Question: How to write a recursive function with two variables in Maple?

Dear All,

I am new to maple and trying to write a recursive function with two input variables, but when i execute the statement it shows error "Error, (in B) too many levels of recursion"

Following is the set of instructions which i am trying to execute:

if n=1 then  

B(m,n):=omega(m);  

else  

B(m,n):=sum(omega(j)*B(m-j,n-1),j=1..m-1)

end if


After execution, i try to access B(1,1) or B(2,1), the following error occurs

B(1, 1);
Error, (in B) too many levels of recursion


I'll be grateful, if someone can help me to fix this problem. 

Please Wait...