#include void main(){ int k,j,m,n; for(n=2;n<=500;n++) { m=1; for (k=2;k<=n/2;k++) if(n%k==0) m=m+k; j=1; for (k=2;k<=m/2;k++) if(m%k==0) j=j+k; if((j==n)&&(n<=m)) printf("n=%3d,m=%3d\n",n,m); }}