Permutation-Invariant Niven Numbers
Abstract
1. Introduction
- We prove the existence of infinitely many PINNs and establish their zero asymptotic density.
- We develop an efficient two-step search algorithm that avoids factorial blowup by exploiting digit-sum congruence and symmetry, providing complete classifications for digit lengths up to 9.
- We construct an infinite family of PINNs for arbitrary digit lengths and derive necessary digit-sum conditions.
- We present a novel parameterization of infinitely many repdigit PINNs through Conjecture 1, which reveals a multiplicative structure involving special primes that are primitive divisors of repunits, establishing a novel connection between permutation invariance in Niven numbers and the arithmetic of recurring decimals. This parameterization not only generates infinitely many new Niven numbers but also provides a systematic method for constructing them through distinguished prime factors.
2. Definitions and Preliminaries
2.1. Notation Summary
2.2. Formal Definition of PINNs
3. Research Questions
- (1)
- What is the smallest PINN?
- (2)
- Are all repdigits (e.g., 111, 222, …) PINNs?
- (3)
- Can a number containing the digit 0 be PINN?
- (4)
- Do infinitely many PINNs exist? If yes, what is their asymptotic density?
- (5)
- For fixed digit-length k, how many PINNs exist?
- (6)
- How can we algorithmically generate all PINNs?
- (7)
- What are necessary and sufficient conditions for such numbers?
- (8)
- What conditions must the digit sum s satisfy to ensure that all permutations (without leading zeros) of a digit set are divisible by s?
- (9)
- How do these numbers relate to established OEIS sequences (e.g., NNs, repdigits)? Do subclasses (primes, palindromes) exist?
- (10)
- What open questions remain? Can this concept extend to other bases (e.g., binary)?
4. Basic Properties
4.1. Single-Digit PINNs
4.2. Repdigits as PINNs: A Novel Parameterization
Significance of Conjecture 1
- 1.
- Systematic Generation: It provides an explicit, multiplicative parameterization of infinitely many repdigit PINNs, going beyond mere existence proofs.
- 2.
- Connection to Repunit Primes: The parameters are not arbitrary primes but are precisely primitive prime divisors of repunits . This establishes a deep connection between permutation invariance in Niven numbers and the arithmetic of recurring decimals.
- 3.
- Infinite Family: By freely varying the exponents , we obtain infinitely many distinct exponents k, and consequently infinitely many distinct repdigit PINNs for each digit a.
- 4.
- Computational Verification: The conjecture has been verified computationally up to our system’s overflow threshold of ∼, providing strong empirical support.
- 5.
- Partial Rigorous Proof: A special case of the conjecture (with ) can be rigorously proved, indicating that the full conjecture is plausible and lies within reach of known number-theoretic techniques.
- 6.
- New Niven Numbers: Even for the previously studied class of repdigit Niven numbers, our parameterization yields infinitely many new examples that were not previously identified, as the exponents k go far beyond those found by brute-force search.
4.3. Numbers Containing Zero
4.4. Infinitude and Density
5. Exhaustive Search for Small PINNs
5.1. 2-Digit PINNs
5.2. 3-Digit PINNs
6. Algorithmic Generation of PINNs
6.1. Complexity Analysis and Implementation Details
- Multiset enumeration: Instead of checking all numbers, we enumerate digit multisets. For k digits chosen from with at most k copies of each digit, the number of multisets is , which grows polynomially in k.
- Representative testing: For a given digit multiset with sum s, we only need to test one representative permutation (e.g., the largest number) modulo s. However, careful analysis shows that for permutation invariance, we must verify that all permutations are divisible by s. We can prune the search by noting that if s has factors 2 or 5, the last digit matters, etc.
- Zero-insertion reuse: The second stage reuses previously validated PINNs of shorter lengths, avoiding redundant checks.
| Algorithm 1 Two-stage search for k-digit PINNs |
| Require: Digit length |
| Ensure: Set of all k-digit PINNs |
| 1: ▹ Initialize result set |
| 2: |
| 3: procedure Stage1(k) ▹ Search for PINNs with all digits nonzero |
| 4: for each multiset M of k nonzero digits do |
| 5: Compute digit sum |
| 6: Let be the integer formed by sorting digits descending |
| 7: if then |
| 8: Check if all permutations of M yield Niven numbers |
| 9: if condition holds then |
| 10: Add all permutations to |
| 11: end if |
| 12: end if |
| 13: end for |
| 14: end procedure |
| 15: |
| 16: procedure Stage2(k) ▹ Augment shorter PINNs with zeros |
| 17: for each j-digit PINN with do |
| 18: for each placement of zeros (no leading zero) do |
| 19: Let N be the resulting k-digit number |
| 20: if all digit permutations of N are Niven numbers then |
| 21: Add all permutations to |
| 22: end if |
| 23: end for |
| 24: end for |
| 25: end procedure |
| 26: |
| 27: Call Stage1 |
| 28: Call Stage2 |
| 29: return |
6.2. Application to
6.3. Higher-Digit PINNs ( to 9)
- 5-digit PINNs:
- 6-digit PINNs:
- 7-digit PINNs:
- 8-digit PINNs:
- 9-digit PINNs:
7. Main Theorem
- 1.
- The digit sum s is constant across all permutations.
- 2.
- The numbers in are divisible by s.
- 3.
- Any permutation of digits preserves the divisibility condition.
8. Further Properties and Conditions
8.1. Zero Insertion in Repdigit PINNs
- For PINN , .
- For PINN , .
- With double zero insertion, .
8.2. Symmetry Property
8.3. Necessary and Sufficient Conditions
8.4. Digit Sum Conditions
8.5. Relations to Other Sequences
9. Conclusions and Open Problems
- (1)
- Existence and density: We proved that infinitely many PINNs exist and established that their asymptotic density is zero, being a subset of Niven numbers.
- (2)
- Novel parameterization: Conjecture 1 provides an innovative parameterization of infinitely many repdigit PINNs through a multiplicative structure involving special repunit primes, establishing new connections between permutation invariance and repunit arithmetic.
- (3)
- Classification for small lengths: We provided complete classifications of PINNs for digit lengths 1 to 9, exhibiting their rich combinatorial structure.
- (4)
- Algorithmic generation: We developed an efficient two-step search algorithm (Algorithm 1) that avoids factorial blowup by exploiting digit-sum congruence and symmetry properties.
- (5)
- Infinite families: Theorem 1 constructs infinite families of PINNs for arbitrary digit lengths , demonstrating that PINNs are unbounded in magnitude.
- (6)
- Arithmetic properties: We derived necessary digit-sum conditions, showing that nontrivial PINNs have digit sums divisible by 3 and bounded between 3 and 81 (excluding repdigits).
- (7)
- Relations to other sequences: PINNs form a strict subset of Niven numbers, and repdigit PINNs yield an interesting family of primes.
- (1)
- The smallest PINN is 1 (single-digit numbers are trivially PINNs).
- (2)
- Not all repdigits are PINNs; only those that are Niven numbers are PINNs.
- (3)
- Yes, numbers containing digit 0 can be PINNs (e.g., 120, 1020).
- (4)
- Yes, infinitely many PINNs exist; their asymptotic density is zero (Equation (2)).
- (5)
- (6)
- Algorithm 1 provides a systematic generation method.
- (7)
- Necessary and sufficient conditions are given in Section 8.3.
- (8)
- Digit sum conditions are discussed in Section 8.4.
- (9)
- PINNs are a subset of Niven numbers; repdigit PINNs yield prime subsets.
- (10)
- Open problems are listed below; extension to other bases is a natural direction.
Open Problems and Future Research
- 1.
- Can the concept of PINNs be extended to arbitrary number bases? What properties persist in base b?
- 2.
- How can we exhaustively characterize all repdigit PINNs? Is Conjecture 1 provable?
- 3.
- Is there a systematic approach for solving algebraic equations of the form using distinguished prime sets?
- 4.
- Are there more efficient algorithms for generating high-digit PINNs? Can we find PINNs without zeros for ?
- 5.
- To what extent do permutation invariant properties hold for other variants of extended Niven numbers, such as c-NNs, higher-order NNs, multiple NNs, and generalized NNs?
- 6.
- Are there any non-repdigit prime PINNs? What about palindromic PINNs?
- 7.
- Can we establish tighter bounds on the digit sums of nontrivial PINNs? Is 81 indeed the maximum?
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Niven, I. Integers divisible by the sum of their digits. In Mathematics of Computation, 1943–1993: A Half-Century of Computational Mathematics; Proceedings of Symposia in Applied Mathematics; Gautschi, W., Ed.; American Mathematical Society: Providence, RI, USA, 1977; Volume 48. [Google Scholar]
- Kennedy, R.E. Digital sums, Niven numbers, and natural density. Crux Math. 1982, 8, 129–133. [Google Scholar]
- Cooper, C.N.; Kennedy, R.E. On Consecutive Niven Numbers. Fibonacci Q. 1993, 31, 146–151. [Google Scholar] [CrossRef]
- Grundman, H.G. Sequences of Consecutive Niven Numbers. Fibonacci Q. 1994, 32, 174–175. [Google Scholar] [CrossRef]
- De Koninck, J.M.; Doyon, N. On the Number of Niven Numbers up to x. Fibonacci Q. 2003, 41, 431–440. [Google Scholar] [CrossRef]
- Cai, T. On 2-Niven Numbers and 3-Niven Numbers. Fibonacci Q. 2003, 41, 168–173. [Google Scholar] [CrossRef]
- Fredricksen, H.; Ionascu, E.J.; Luca, F. Minimal Niven Numbers. INTEGERS Elect. Comb. Number Theory 2008, 8, A19. [Google Scholar] [CrossRef]
- Sanna, C. Additive bases and Niven numbers. Bull. Aust. Math. Soc. 2021, 104, 373–380. [Google Scholar] [CrossRef]
- Wilson, B. Construction of small consecutive Niven numbers. Fibonacci Q. 1996, 34, 240–243. [Google Scholar] [CrossRef]
| Symbol | Meaning |
|---|---|
| k-digit integer with digits , | |
| Symmetric group on k elements | |
| Transposition swapping positions 1 and i | |
| Set of all digit permutations of (leading zeros removed) | |
| Set of k-digit Niven numbers | |
| Set of k-digit permutation-invariant Niven numbers | |
| n-digit repdigit consisting of digit a (e.g., ) | |
| Asymptotic (natural) density of PINNs | |
| m consecutive zeros (used in concatenation) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Wu, H.; Lou, S. Permutation-Invariant Niven Numbers. Symmetry 2026, 18, 186. https://doi.org/10.3390/sym18010186
Wu H, Lou S. Permutation-Invariant Niven Numbers. Symmetry. 2026; 18(1):186. https://doi.org/10.3390/sym18010186
Chicago/Turabian StyleWu, Huiling, and Senyue Lou. 2026. "Permutation-Invariant Niven Numbers" Symmetry 18, no. 1: 186. https://doi.org/10.3390/sym18010186
APA StyleWu, H., & Lou, S. (2026). Permutation-Invariant Niven Numbers. Symmetry, 18(1), 186. https://doi.org/10.3390/sym18010186

