设为 f[i] , f[i]=ϕ(i)×i2(i>=2) f[1]=1 。 大概证明就是若 x 与n互质, n−x 也与 n <script type="math/tex" id="MathJax-Element-195">n</script>互质。