1 + (sum (product (n - j), j=0..i), i=0..n-1) for n=3