偶数的互质表示的精确公式避免一个素数
Exact Formulas for Coprime Representations of Even Integers Avoiding a Prime
AI总结:
本文推导了偶数避免特定素数的互质表示的闭式表达式,利用余数运算和数论方法,实现高效计算。
摘要:
固定一个素数p≥5,定义g(2n,p)=#{(h,k)∈Z_{>0}^2 : h+k=2n, h≤k, gcd(h,6p)=gcd(k,6p)=1}。我们推导出g(2n,p)的显式闭式表达式,涉及余数运算δ_k(x)=x−k⌊x/k⌋、基本阶梯函数以及模p的同余方程6x≡−1和6x≡−5的最小解。关键成分是通过欧几里得算法获得δ_k(a_0x)=b_0的显式解,直接确定排除的余数类。所得公式表明g(2n,p)沿n的算术级数是分段仿射的,由模3和p的余数类控制。对于固定p,预计算两个余数参数可在O(logp)时间内完成,每个g(2n,p)的评估只需O(1)次操作,相比直接枚举的O(n)更高效。公式对所有2n≤10^5和p∈{5,7,11,13,17,19,23}的素数进行了计算验证,与暴力枚举完美一致。
英文摘要:
Fix a prime $p \ge 5$ and define $g(2n,p)=\#\{(h,k)\in\mathbb{Z}_{>0}^2 : h+k=2n,\; h\le k,\; \gcd(h,6p)=\gcd(k,6p)=1\}$. We derive explicit closed-form expressions for $g(2n,p)$ in terms of the canonical remainder operator $δ_k(x)=x-k\lfloor x/k\rfloor$, elementary step functions, and the minimal solutions of the congruences $6x \equiv -1 \pmod{p}$ and $6x \equiv -5 \pmod{p}$. A key ingredient is an explicit formula for the minimal solution of $δ_k(a_0 x)=b_0$ obtained via the Euclidean algorithm, which determines the excluded residue classes directly. The resulting formulas show that $g(2n,p)$ is piecewise affine along arithmetic progressions of $n$, governed by residue classes modulo $3$ and $p$. For fixed $p$, after precomputing two residue parameters in $O(\log p)$ time, each evaluation of $g(2n,p)$ requires only $O(1)$ operations, compared to $O(n)$ for direct enumeration. The formulas are validated computationally for all $2n \le 10^5$ and primes $p \in \{5,7,11,13,17,19,23\}$, with perfect agreement with brute-force enumeration.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。