最接近平方根的因子分解
Smallest Factorizaiton
题目详情
数 不是质数,因此可以写成 ( 为正整数)。
求 ,其中 ,且对任意其它满足 的因子对,都有
提示:可考虑质因数分解。
英文原题
The number is not prime, so it can be written in the form for two positive integers and . Find , where and satisfy and for any other pair such that , . It may be helpful to consider the prime factorization.
解析
要使 最小,相当于让 尽量接近 。
枚举 的所有因子可得最接近的一对为
因此
英文解析
To minimize is to keep as close as possible to .
The closest possible pair of all factors to enumerate is
Therefore,