跳转到主要内容
Calcton

Semiperfect Numbers Calculator

Free online semiperfect numbers calculator. Enter your values and get instant results with the formula, step-by-step working, a worked example and FAQs — everything runs locally in your browser on Calcton, no signup required.

中文版:半完全数在线计算器

Semiperfect Numbers Calculator
正整数 n(1 ≤ n ≤ 100000)

原理:若 n 的某些**真因子**(不含 n)之和恰好等于 n,n 就是半完全数(semiperfect / pseudoperfect)。例如 12 = 1+2+3+6、20 = 1+4+5+10。判定用子集和动态规划:真因子作为物品、容量 n,可达和集合从 0 出发逐步扩展,命中 n 即成功。回溯分解则用带后缀和剪枝的 DFS,从大到小选取,返回一个具体的子集。完美数自动是半完全的(全部真因子之和 = n);所有倍数关系还保证:若 n 半完全则 k·n(k ≥ n 的倍数规则)也半完全——半完全数在乘法下封闭。

步骤:输入 n(上限 100000),输出真因子、DP 判定与一个回溯找到的子集分解式。

示例:12 = 2 + 4 + 6;20 = 1 + 4 + 5 + 10;完美数 6 = 1 + 2 + 3;而 70 的真因子 1、2、5、7、10、14、35 无论怎样选取都凑不出 70——这正是它成为最小怪异数的原因。

注意事项:半完全数既包括所有完美数,也包括绝大多数盈数;一个数可能有多种子集分解(工具只返回一个);回溯搜索在最坏情况仍受指数级子集空间约束,但后缀和剪枝使 100000 以内瞬时完成;判定 DP 与回溯两条路径结果必须一致,本工具同时输出作为交叉验证。

相关:怪异数工具专攻「盈而不半完全」的反例;盈数工具给出三分法背景;实用数工具研究「能凑出所有更小数」的更强条件;子集和问题本身在组合优化中是经典 NP 完全问题。

How to use the Semiperfect Numbers Calculator

  1. Fill in the inputs with your own numbers — every field shows what it expects.
  2. The result updates instantly as you type; no "Calculate" click needed.
  3. Read the result card for the main figure, the step-by-step formula, and practical notes.

Frequently asked questions

Is the Semiperfect Numbers Calculator free?

Yes — all math calculators on Calcton are free, with no sign-up required. Your inputs are processed in your browser and never sent to a server.

Is there a Chinese version of this tool?

Yes. Use the Chinese version link above — it is the same calculator with the interface in Simplified Chinese.

References

Formulas and benchmarks used by this calculator follow these published sources.

  1. dlmf.nist.gov
  2. mathworld.wolfram.com
Kevin's profile

KevinContent LeadCalcton Editorial Team · Last updated 2026-10-02

Kevin maintains Calcton's formula verification and content: every calculator cites the standard it implements, worked examples are recomputed programmatically, and health benchmarks follow WHO and international guidelines.

Related calculators

More in this category: Math calculators

About math calculators

Free online math calculators for algebra, statistics, number theory and everyday arithmetic — from quadratic equations and matrices to percentages, fractions and prime factorization, each with step-by-step formulas.

搜索计算器

搜索全站计算器、分类与页面,回车直达