User:RandomUndergrad

Currently a final year Math student at CUHK.

I'll put this here for (my) future reference:

int main{int n,x,y;for(n=1;n<11;n++)for(x=1;x<33;x++)for(y=1;y<33;y++)if(x*x+y*y*n==1009)printf("1009=%d^2+%dx%d^2\n",x,n,y);}
 * 1) include 

also


 * 1129=20^2+1x27^2
 * 1129=27^2+1x20^2
 * 1129=29^2+2x12^2
 * 1129=19^2+3x16^2
 * 1129=27^2+4x10^2
 * 1129=2^2+5x15^2
 * 1129=23^2+6x10^2
 * 1129=11^2+7x12^2
 * 1129=29^2+8x6^2
 * 1129=20^2+9x9^2
 * 1129=33^2+10x2^2