The Rascal Triangle definition is similar to that of the Pascal Triangle. The rows are numbered from the top starting with 0. Each row n contains n+1 numbers indexed from 0 to n. Using R(n,m) to indicte the index m item in the index n row:
R(n,m) = 0 for n < 0 OR m < 0 OR m > nThe first and last numbers in each row(which are the same in the top row) are 1:
R(n,0) = R(n,n) = 1The interior values are determined by (UpLeftEntry*UpRightEntry+1)/UpEntry(see the parallelogram in the array below):
R(n+1, m+1) = (R(n,m) * R(n,m+1) + 1)/R(n-1,m) Write a program which computes R(n,m) the
element of the
row of the Rascal Triangle.