Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

too many for loops

I am trying to solve a Diophantine system with more than 20 variables. I have been trying to use:


 for a in srange(1,100):
      for b in srange(1,a+1):
                if (a+b+...)^(1\2) in ZZ and if (a+b+...)^(1/3) in ZZ:

The problem is I have more than 20 variables and hence more than 20 of these for loops and Python doesnt allow that. Any help on an easy workaround would be greatly appreciated! This is not for homework or anything, I am just trying to do some computational research on Diophantine systems and I am running into some trouble.