找回密码
 欢迎注册
查看: 18368|回复: 3

[提问] 有避免完全因子分解,获得整数的平方因子的算法吗?

[复制链接]
发表于 2016-12-7 13:00:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?欢迎注册

×
如$15435=35*21^2$
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2019-10-11 11:05:38 | 显示全部楼层
同问,呵呵。
  1. p = NextPrime[2 10^22]
  2. q = NextPrime[3 10^22]
  3. n = p^2 q
  4. FactorInteger[n] // Timing
  5. SquareFreeQ[n] // Timing
  6. MoebiusMu[n] // Timing
复制代码

从运行结果来看,貌似SquareFreeQ用的就是分解的方法。

评分

参与人数 1威望 +12 金币 +12 收起 理由
wayne + 12 + 12 欢迎老朋友归来!!!

查看全部评分

毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2019-10-11 12:59:17 | 显示全部楼层
根据:http://mathworld.wolfram.com/Squarefree.html,如下:

There is no known polynomial time algorithm for recognizing squarefree integers or for computing the squarefree part of an integer. In fact, this problem may be no easier than the general problem of integer factorization (obviously, if an integer n can be factored completely, n is squarefree iff it contains no duplicated factors). This problem is an important unsolved problem in number theory because computing the ring of integers of an algebraic number field is reducible to computing the squarefree part of an integer (Lenstra 1992, Pohst and Zassenhaus 1997).
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
发表于 2019-10-11 13:28:34 | 显示全部楼层
https://arxiv.org/abs/1304.6937
在这里有一篇相关论文
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2024-4-19 17:39 , Processed in 0.045471 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表