Processing math: 100%
Ask Your Question

Revision history [back]

I cannot seem to figure out what's wrong with the following Sage / Pari-GP code

Basically, I would like to search for counterexamples to my conjecture that (2xyσ(xy))<(2xσ(x))(σ(y)y) where σ is the sum of divisors.

I tried using the following Pari-GP script in Sage Cell Server:

for(x=1, 100000, for(y=1, 100000, if(2*x*y-sigma(x*y) >= (2x-sigma(x))*(sigma(y)-y),print(x,"   ",y))))

However, it is returning the following error message:

***   syntax error, unexpected ')', expecting )-> or ',': 
  ***   ...-sigma(x*y)>=(2x-sigma(x))*(sigma(y)-y),print(
  ***                               ^---------------------

I did already check and verified that all the parentheses are in their proper places. I also checked for missing asterisks and verified that there are none.