ProjectEuler 108 Diophantine reciprocals I
1x+1y=1n\frac{1}{x} + \frac{1}{y} = \frac{1}{n}
=>1y=x−nnx\frac{1}{y} = \frac{x-n}{nx}
=>y=nxx−ny = \frac{nx}{x-n}令b=x−n,x=b+nb = x - n, x = b + n
y=nxx−ny = \frac{nx}{x-n}
=>y=n∗(b+n)b=n+n2by = \f
原创
2018-04-05 09:23:47 ·
226 阅读 ·
0 评论