求1~n得约数和:https://ac.nowcoder.com/acm/problem/14682
海伦海勒
for (t=1; t<=100000; t++) //求面积为整数的
{
int delta=3*(t*t-4);
int pd=floor(sqrt(delta));
if (pd*pd!=delta) continue;
delta=pd;
if ((t*delta)%4!=0) continue;
s=(t/4)*delta;
if (s==0) continue;
cout<<t<<' '<<s<<endl; //(a+1)*sqrt(3*(a-1)*(a+3))/4(面积)
}