Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:我的推导过程In Reply To:我的推导过程 Posted by:stephtan at 2008-09-04 21:39:16 > 1/a = (1/b + 1/c)/ (1 - 1/(b*c)) > => bc-1 = a(b+c) > assume b=a+m and c=a+n (b and c is always bigger than a) > (a+m)(a+n)-1=a(a+m+a+n) > => a*a+a*n+a*m+m*n-1=2*a*a+m*a+n*a > => m*n=a*a+1 > and then > for(m=a;m>=1;m--) > if((a*a+1)%m==0) > break; > n=(a*a+1)/m 说的真清楚,太好了 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator