Project Euler 110:Diophantine reciprocals II 丢番图倒数II

Diophantine reciprocals II

In the following equation x, y, and n are positive integers.

 

For n = 4 there are exactly three distinct solutions:

 

It can be verified that when n = 1260 there are 113 distinct solutions and this is the least value of n for which the total number of distinct solutions exceeds one hundred.

What is the least value of n for which the number of distinct solutions exceeds four million?

NOTE: This problem is a much more difficult version of Problem 108 and as it is well beyond the limitations of a brute force approach it requires a clever implementation.


丢番图倒数II

在如下方程中,x、y、n均为正整数。

 

对于n = 4,上述方程恰好有3个不同的解:

 

可以验证当n = 1260时,恰好有113种不同的解,这也是不同的解的总数超过一百种的最小n值。

不同的解的总数超过四百万种的最小n值是多少?

注意:这是第108题一个极其困难的版本,而且远远超过暴力解法的能力范围,因此需要更加聪明的手段。

 解题

先占坑

 待完善

转载于:https://www.cnblogs.com/theskulls/p/5155229.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值