Abstract
In this paper, we study a system of 10 equations containing a parameter—a non-negative integer n—and associated with the problem of filling a special table with natural numbers. As a result, by developing a hybrid approach—first, by proving an a priori estimate for the solution of the system, which implies a finite set of solutions, thereby significantly narrowing the search space for a solution, and second, by performing a computer calculation of all remaining vectors satisfying the a priori estimate—we established that the system is not solvable for all values of the parameter n. We also prove a criterion for to be a solution to the system for some value of the parameter n. Furthermore, we prove a fact that, in particular, implies that the set of values of the parameter n for which the system has at least 10 solutions is countable.
Keywords:
system of equations in natural numbers; solvability of a system of equations; a priori estimate of a solution; magic table; mathematical puzzle MSC:
11Y50; 11D45; 91A46; 91A68
1. Introduction
Since ancient times, mathematics has presented a variety of problems of varying complexity, with interesting formulations and properties, as well as game-like elements, which have attracted mathematicians and mathematics enthusiasts to study them [1,2,3]. And today, too, mathematical problems with interesting formulations and properties often arise in a wide variety of mathematical studies, in particular, in [4,5,6,7,8,9,10]. The interesting formulations and properties of such problems are often interpreted and called magical, which, in part, adds to their appeal, and these mathematical problems themselves are often called magical problems or puzzles. Such mathematical puzzles in their original formulation may not describe real applied problems, but they have enormous practical applications, developing logical thinking and problem-solving skills; specifically, research into computational complexity classes is sometimes advanced through the study of various puzzles [11]. In some cases, they are directly applicable to programming, engineering, finance, cryptography, and everyday life [3,12,13,14]. Many of their principles underlie algorithms and artificial intelligence, and today, they serve as a powerful motivation and basis for the development of engaging computer games and puzzles [15,16]. Another important significance of such problems, with interesting formulations and properties, i.e., such mathematical puzzles at the present time, is that, firstly, due to their interesting formulations and properties, they also serve, along with others, in particular those presented in [3,15,16,17], as a kind of bridge between the world of professional mathematics and the general public. Secondly, they are implemented on a computer and are generalized by capturing complexity and attractiveness; therefore, they represent a fascinating object of scientific research, including from the point of view of algorithms and computational complexity [1,15,18].
In this paper, for an arbitrary non-negative integer n, we study the solvability of a system of 10 equations of the following form:
where is the number of digits in the decimal notation of the number n, and are the unknown natural numbers being sought. The above system (1) describes a special state, which will be called magic in this paper, of a table of numbers of the following form:
namely, if is a solution of System (1), then for any digit indicated in the first row of table (2), the number indicated in the second row of table (2) and standing below it is equal to the number of digits k in the entire table (2). That is, it describes a puzzle associated with a table of numbers of the form (2), the essence of which, in fact, is that for a given non-negative integer n, it is necessary to select, if possible, such a vector of 10 natural numbers so that a table of the form (2) with a given parameter n and a selected vector has a magical state. It should be noted that in this work, the problem being analyzed is related to the problems of counting digits and autobiographical numbers, but the presence of the parameter n in it makes it complex, and its connection with the table of type (2) makes it even more attractive. The author’s motivation for analyzing a system of the form (1), containing an arbitrary non-negative integer parameter n, is that, firstly, the results proposed in the work and their interpretations in the language of a magic table of the form (2) provide a new perspective on the problems of counting digits and, possibly, can serve, along with other works, in particular, those presented in [3,16,17], as a kind of bridge between the world of professional mathematics and the general public. Secondly, it can be applied and generalized in the analysis of similar problems, and it can complement similar results [19,20,21,22,23,24]. One can verify, for example, by trial and error, that System (1) for is solvable. Indeed, for this, in view of the above-described connection of System (1) with table (2), it is sufficient to provide the following tables:


We present a brief outline of this article. The second section presents the notation and definitions used. In the third section, an a priori estimate for a solution to System (1) is proved, which, in particular, implies that the number of solutions to System (1) for a fixed value of the parameter n is finite. In the fourth section, it is proved that System (1) for is unsolvable. A criterion is also proved for when will be a solution to System (1) for some value of the parameter n. In the fifth section, a fact is proved which, in particular, implies that the set of values of the parameter n for which System (1) has at least 10 solutions is countable.
2. Used Notations and Definitions
Let be the total number of digits in the decimal notation of the number n, where , as noted above, is the number of digits k in the decimal notation of the number n.
Let be the minimal natural solution of the inequality
Definition 1.
We will say that table (2), containing a non-negative parameter n and the corresponding vector of natural numbers , has a magic state if is a solution of System (1), i.e., for any digit indicated in the first row of table (2), the number indicated in the second row of table (2) and standing below it is equal to the number of occurrences of digit k in the entire table (2).
Remark 1.
We note that for any non-negative integer n, the natural number is well defined and also satisfies the following inequality:
Indeed, since, firstly, the following inequalities
are satisfied and, secondly,
3. A Priori Estimate of the Solution to the General System
We begin the exposition by formulating and justifying the a priori estimate of the solution to System (1).
Lemma 1.
If is a solution of System (1), then the following estimate holds:
Proof.
First, note that there exists such that for all ; in other words, . Let be an s-digit number, where . We will begin the proof by justifying an auxiliary a priori estimate of the form
We will reason by contradiction: suppose that the following inequality holds:
Then, on the one hand, in view of , we obtain a chain of inequalities
and on the other hand, due to the -th equation of System (1), we have
However, this leads to a contradiction, since based on the right-hand side of (6) and the definition of , we have
The validity of the auxiliary a priori estimate (4) is thus established.
Now, based on (4), we justify a more precise estimate of the form (3). Indeed, due to (4), we have that is at most a -digit number. Then, based on (7), we obtain
The estimate obtained in (10) completes the proof. Lemma 1 is completely proven. □
4. Establishing the Unsolvability of a Specific System
In this section, we prove that for , a particular system of equations of the form (1) is unsolvable.
Theorem 1.
The system of equations
in natural numbers is unsolvable.
Proof.
First, we prove that if is a solution to System (11), then the following estimate holds:
According to the definition above, we have . Therefore, in view of (3), if is a solution to System (11), then we get the following inequality:
Based on (13), we prove (12) by contradiction. Suppose for some . Then, based on the -th equation of System (11), the estimate (13), and the inclusion , we obtain
Based on (14) regarding the possible value of , we consider two cases.
Case 1. Let . Then, by virtue of the -th equation of System (11), the estimate (13), and the inclusion , we obtain
A contradiction arose in (15).
Case 2. Let . Then, by virtue of the -th equation of System (11), the estimate (13), and the inclusion , we obtain
If , then the result in (17) contradicts , and if , then in the 4-th equation of System (11), a contradiction of the following form arises:
Now, using the proved Estimate (12) and similar reasoning, it is easy to prove that if is a solution of System (11), then the following estimate holds:
Thus, on the one hand, based on a priori estimates, we conclude that if System (11) has a solution, then Inequality (20) must be satisfied. On the other hand, having checked on a computer all possible variants satisfying Inequality (20), which could be solutions (since there are few of them left), i.e., substituting into System (11) each element of the set , which has elements, it is easy to see in a matter of minutes that System (11) is unsolvable. Theorem 1 is completely proven. □
Now let us consider this problem from a slightly different point of view; namely, let us determine when a specific vector of natural numbers is a solution to System (1) for some n.
Theorem 2.
The vector of natural numbers will be a solution of System (1) for some n if and only if the following two conditions are satisfied:
- (1)
- for each , the inequality holds, where
- (2)
- either the inequality holds, or the equality holds.
Proof.
Necessity. Let be a solution to System (1) for some . Then, in view of the definition of and the -th equation of System (1), for each , we have
To justify condition (2), consider two cases.
Case 1. Let . Then, we obtain
Case 2. Let . Then, there exists such that , and therefore,
Sufficiency. Let satisfy Conditions (1) and (2). Then, by constructing the number
due to conditions (1) and (2), the number is correctly defined (written), and we justify that is a solution to System (1) for . Indeed, due to (21), for each , we have
Theorem 2 is completely proven. □
5. The Cardinality of the Set of Parameter Values for Which the System Is Solvable
In this section, we prove that the set of parameter values n for which table (2) has a magic state is countable.
Theorem 3.
The set of non-negative integer values of the parameter n for which System (1) is solvable is countable.
Proof.
Let S be the set of non-negative integer values of the parameter n for which System (1) is solvable. Then, the following embedding holds:
Now, we construct the following special set of the form
and argue that the embedding holds
Let be an arbitrary element of the set . Then, there exists a unique natural number such that the equality holds. It is sufficient to show that for , the vector is a solution to System (1). Indeed, since
At the end of this paper, we prove one more statement that strengthens (refines) Theorem 3.
Theorem 4.
Proof.
It is sufficient to prove that for each , a vector of 10 natural numbers of the form is a solution of System (1) for . Indeed, if , then due to the fact that is a solution of System (1) for , the following equality holds:
and if , then due to the fact that is a solution of System (1) for , the following equality holds:
Since the number in the reasoned Equalities (25) and (26) is arbitrary, we obtain that is a solution of System (1) for for any . Theorem 4 is completely proven. □
Corollary 1.
Indeed, we note that the i-th coordinates of all the new m different solutions presented in the proof of Theorem 4 are equal to each other; therefore, each time, starting from the currently achieved set of m different solutions corresponding to , with a common i-th coordinate, repeating the proof (process), we present the next natural number greater than and also the corresponding subsequent new m different solutions with a common i-th coordinate.
6. Conclusions
This study established that System (1) is solvable for some values of the non-negative integer parameter n, but not for all values of the non-negative integer parameter n. Specifically, firstly, an important a priori estimate of its solution was proven, which significantly narrows the search space to a finite domain, thereby, in particular, proving the finiteness of the set of solutions of the original system. Secondly, based on computer enumeration of all remaining variants satisfying the a priori estimate, it was proven that for , it is unsolvable. It has also been proven that the set of values of the parameter n for which System (1) has at least 10 solutions is countable. The results presented in this article can be used in the study of similar problems, the analysis of similar mathematical puzzles [2,16,19,25], or the development of computer games, and they can also be useful in the study of some financial problems [14,26,27] that are reducible to puzzles or games from a mathematical point of view.
Also, System (1), due to its connection with table (2), can be an object of further study. Therefore, the following non-trivial problems related to it can be noted as suitable for further study:
- 1.
- Finding the set of values of the parameter n for which System (1) is unsolvable, i.e., if the value of the parameter n is taken from this set, then it is pointless to play a game associated with table (2), as in the game “15” [16]—it is pointless to select a vector of 10 natural numbers such that when this vector is substituted into table (2), this table will have a magical state.
- 2.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
No new data were created or analyzed in this study.
Acknowledgments
The author sincerely thanks his teachers for posing such an interesting, in his opinion, problem.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Takemi, K.; Sakuma, T.; Kato, S. Large size magic square generation using multi-stage evolutionary strategy. In Proceedings of the 2024 IEEE International Conference on Agents (ICA), Wollongong, Australia, 4–6 December 2024; pp. 114–119. [Google Scholar] [CrossRef] [Scilit]
- Gupta, S.S. On Some Special Numbers. In Exploring the Beauty of Fascinating Numbers; Springer Nature: Singapore, 2025; pp. 527–565. [Google Scholar] [CrossRef] [Scilit]
- Fraenkel, A.S. Combinatorial games: Selected bibliography with a succinct gourmet introduction. Games Chance 2007, 29, 493–537. [Google Scholar]
- Barton, C.H.; Sudbery, A. Magic Squares and Matrix Models of Lie Algebras. Adv. Math. 2003, 180, 596–647. [Google Scholar] [CrossRef] [Scilit]
- Pchelintsev, S.V. On Identities of Model Algebras. Izv. Math. 2023, 87, 1210–1226. [Google Scholar] [CrossRef] [Scilit]
- Volosova, N.V. The p-convexity functor for Lp(X)-spaces. Sb. Math. 2022, 213, 734–743. [Google Scholar] [CrossRef] [Scilit]
- Kamyshova, G.; Osipov, A.; Gataullin, S.; Korchagin, S.; Ignar, S.; Gataullin, T.; Terekhova, N.; Suvorov, S. Artificial neural networks and computer vision-based phytoindication systems for variable rate irrigation improving. IEEE Access 2022, 10, 8577–8589. [Google Scholar] [CrossRef] [Scilit]
- Kiseleva, R.Z.; Kirsanova, N.A.; Nikolaev, A.P.; Klochkov YuV, Y.V. Variants of physical equations in a curvilinear coordinate system and their comparison based on mixed FEM. Mater. Phys. Mech. 2024, 52, 33–43. [Google Scholar] [CrossRef]
- Mikeš, J.; Stepanov, S.; Tsyganok, I. New applications of the Ahlfors Laplacian: Ricci almost solitons and general relativistic vacuum constraint equations. J. Geom. Phys. 2025, 209, 105414. [Google Scholar] [CrossRef] [Scilit]
- Barotov, D.N. Target Function without Local Minimum for Systems of Logical Equations with a Unique Solution. Mathematics 2022, 10, 2097. [Google Scholar] [CrossRef] [Scilit]
- Uehara, R. Computational complexity of puzzles and related topics. Interdiscip. Inf. Sci. 2023, 29, 119–140. [Google Scholar] [CrossRef] [Scilit]
- Sudakov, V.; Zhukov, A. Fuzzy Domination Graphs in Decision Support Tasks. Mathematics 2023, 11, 2837. [Google Scholar] [CrossRef] [Scilit]
- Ali, I.M.; Caprolu, M.; Di Pietro, R. Foundations, Properties, and Security Applications of Puzzles: A Survey. ACM Comput. Surv. 2020, 53, 1–38. [Google Scholar] [CrossRef] [Scilit]
- Kritzman, M.P. Puzzles of Finance: Six Practical Problems and Their Remarkable Solutions; John Wiley & Sons: Hoboken, NJ, USA, 2002. [Google Scholar]
- Guo, J.; Yu, P.C. Puzzle and dragons is hard. Theor. Comput. Sci. 2024, 994, 114477. [Google Scholar] [CrossRef] [Scilit]
- Johnson, W.W.; Story, W.E. Notes on the “15” puzzle. Am. J. Math. 1879, 2, 397–404. [Google Scholar] [CrossRef] [Scilit]
- German, O.N.; Lakshtanov, E.L. Application of spectral theory to constructing a puzzle on the basis of the Minesweeper computer game. Math. Notes 2010, 88, 888–890. [Google Scholar] [CrossRef] [Scilit]
- Pizlo, Z.; Li, Z. Solving combinatorial problems: The 15-puzzle. Mem. Cogn. 2005, 33, 1069–1084. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khovanova, T. Autobiographical Numbers. arXiv 2008, arXiv:0803.0270. [Google Scholar] [CrossRef] [Scilit]
- Danesi, M. Puzzles and Mathematics. In Ahmes’ Legacy: Puzzles and the Mathematical Mind; Springer International Publishing: Cham, Switzerland, 2018; pp. 1–44. [Google Scholar] [CrossRef] [Scilit]
- Ates, T.; Cavdur, F. Sudoku puzzle generation using mathematical programming and heuristics: Puzzle construction and game development. Expert Syst. Appl. 2025, 282, 127710. [Google Scholar] [CrossRef] [Scilit]
- Sauerberg, J.; Shu, L. The long and the short on counting sequences. Am. Math. Mon. 1997, 104, 306–317. [Google Scholar] [CrossRef] [Scilit]
- Barotov, D.N. Convex Continuation of a Boolean Function and Its Applications. J. Appl. Ind. Math. 2024, 18, 1–9. [Google Scholar] [CrossRef] [Scilit]
- Ryabov, P.E.; Sokolov, S.V. Bifurcation Diagram of the Model of a Lagrange Top with a Vibrating Suspension Point. Mathematics 2023, 11, 533. [Google Scholar] [CrossRef] [Scilit]
- Barotov, D.N. On the Existence and Properties of Convex Extensions of Boolean Functions. Math. Notes 2024, 115, 489–505. [Google Scholar] [CrossRef] [Scilit]
- Kirillov, Y.V. Modified method of chain substitutions as an alternative to the integral method of economic analysis. Financ. Theory Pract. 2024, 28, 112–127. [Google Scholar] [CrossRef] [Scilit]
- Mitev, V.T. Approbation of the averaged method of chain substitutions for three- and four-multiples and multiplicative-multiples factor models. Financ. Theory Pract. 2022, 26, 166–174. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2025 by the author. 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.