跳转到主要内容
Calcton

Harshad Numbers Calculator

Free online harshad 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.

中文版:哈沙德数(Niven 数)判定工具

Harshad Numbers Calculator
正整数 n(1 ≤ n ≤ 10^6,同时枚举不超过 n 的哈沙德数)

原理:哈沙德数(Harshad / Niven number,梵语「大喜悦」)能被自身数位和整除:n mod s(n) = 0。1 到 10 全部是哈沙德数;11(11 mod 2 = 1)不是;12 = 3×4(数位和 3)是。100 以内恰 33 个。工具同时给出商 n/s(n)——判定与商在一步内完成。哈沙德数在任意进制下都有定义(本工具十进制);Niven 数之名来自伊万·尼文在 1977 年数论课上的推广。相邻哈沙德数对(如 20、21)存在但随位数稀疏;哈沙德数的补集密度随范围缓慢上升。

步骤:输入 n,求数位和 s(n)、检查整除性并展示商;枚举不超过 n 的前 14 个哈沙德数逐数验证。

示例:18 的数位和 = 9.000000000000、商 = 2.000000000000(是);19 数位和 10,不整除(否);21 数位和 3,商 7(是);不超过 21 的哈沙德数 = 1、2、3、4、5、6、7、8、9、10、12、18、20、21;不超过 100 共 33 个。

注意事项:数位和至少为 1,1 自身是哈沙德数;判定用取模,商仅作展示(整除时商为整数);同一位数重复枚举时结果恒定——哈沙德性只依赖 n 本身;12 的倍数中哈沙德占比高(3 与 4 的整除规则叠加)但不是全部。

相关:数字根工具给出数位和的迭代终态(模 9 同余);水仙花数工具是逐位幂的加强版;快乐数工具迭代平方和;整除性检验(3、9 的规则)本质就是数位和哈沙德判定的特例。

How to use the Harshad 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 Harshad 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.

搜索计算器

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