I want to write a program to check whether a given rational function f(x,y) in two variables x,y(=polynomial in x,ypolynomial in x,y) is of the form ∑ik,jk,lk,mk1+xik+yjk1+xlk+ymk where ik,jk,lk,mk runs from 0 to 5(say), and k=number of summands is 16(say).
Is there a way to run a for loop that checks this? The main problem for me is that there are too many variables involved.