Lunar arithmetic
Lunar arithmetic, formerly called dismal arithmetic,[1][2] is a version of arithmetic in which the addition and multiplication operations on digits are defined as the max and min operations. Thus, in lunar arithmetic,
- [math]\displaystyle{ 2+7=\max\{2,7\}=7 }[/math] and [math]\displaystyle{ 2\times 7 = \min\{2,7\}=2. }[/math]
The lunar arithmetic operations on nonnegative multidigit numbers are performed as in usual arithmetic as illustrated in the following examples. The world of lunar arithmetic is restricted to the set of nonnegative integers.
976 + 348 ---- 978 (adding digits column-wise)
976 × 348 ---- 876 (multiplying the digits of 976 by 8) 444 (multiplying the digits of 976 by 4) 333 (multiplying the digits of 976 by 3) ------ 34876 (adding digits column-wise)
The concept of lunar arithmetic was proposed by David Applegate, Marc LeBrun, and Neil Sloane.[3]
In the general definition of lunar arithmetic, one considers numbers expressed in an arbitrary base [math]\displaystyle{ b }[/math] and define lunar arithmetic operations as the max and min operations on the digits corresponding to the chosen base.[3] However, for simplicity, in the following discussion it will be assumed that the numbers are represented using 10 as the base.
Properties of the lunar operations
A few of the elementary properties of the lunar operations are listed below.[3]
- The lunar addition and multiplication operations satisfy the commutative and associative laws.
- The lunar multiplication distributes over the lunar addition.
- The digit 0 is the identity under lunar addition. No non-zero number has an inverse under lunar addition.
- The digit 9 is the identity under lunar multiplication. No number different from 9 has an inverse under lunar multiplication.
Some standard sequences
Even numbers
It may be noted that, in lunar arithmetic, [math]\displaystyle{ n+n\ne 2\times n }[/math] and [math]\displaystyle{ n+n=n }[/math]. The even numbers are numbers of the form [math]\displaystyle{ 2 \times n }[/math]. The first few distinct even numbers under lunar arithmetic are listed below:
- [math]\displaystyle{ 0,1,2,10,11,12,20,21,22,100, 101, 102, 120, 121, 122, \ldots }[/math]
These are the numbers whose digits are all less than or equal to 2.
Squares
A square number is a number of the form [math]\displaystyle{ n\times n }[/math]. So in lunar arithmetic, the first few squares are the following.
- [math]\displaystyle{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 100, 111, 112, 113, 114, 115, 116, 117, 118, 119, 200, \ldots }[/math]
Triangular numbers
A triangular number is a number of the form [math]\displaystyle{ 1+2+\cdots+n }[/math]. The first few triangular lunar numbers are:
- [math]\displaystyle{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29, 29, 29, 29, 29, \ldots }[/math]
Factorials
In lunar arithmetic, the first few values of the factorial [math]\displaystyle{ n!=1\times 2\times \cdots \times n }[/math] are as follows:
- [math]\displaystyle{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 110, 1110, 11110, 111110, 1111110, \ldots }[/math]
Prime numbers
In the usual arithmetic, a prime number is defined as a number [math]\displaystyle{ p }[/math] whose only possible factorisation is [math]\displaystyle{ 1\times p }[/math]. Analogously, in the lunar arithmetic, a prime number is defined as a number [math]\displaystyle{ m }[/math] whose only factorisation is [math]\displaystyle{ 9\times n }[/math] where 9 is the multiplicative identity which corresponds to 1 in usual arithmetic. Accordingly, the following are the first few prime numbers in lunar arithmetic:
- [math]\displaystyle{ 19, 29, 39, 49, 59, 69, 79, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 109, 209, 219, }[/math]
- [math]\displaystyle{ 309, 319, 329, 409, 419, 429, 439, 509, 519, 529, 539, 549, 609, 619, 629, 639, \dots }[/math]
Every number of the form [math]\displaystyle{ 10 \ldots ( n\text{ zeros}) \ldots 09 }[/math], where [math]\displaystyle{ n }[/math] is arbitrary, is a prime in lunar arithmetic. Since [math]\displaystyle{ n }[/math] is arbitrary this shows that there are an infinite number of primes in lunar arithmetic.
Sumsets and lunar multiplication
There is an interesting relation between the operation of forming sumsets of subsets of nonnegative integers and lunar multiplication on binary numbers. Let [math]\displaystyle{ A }[/math] and [math]\displaystyle{ B }[/math] be nonempty subsets of the set [math]\displaystyle{ N }[/math] of nonnegative integers. The sumset [math]\displaystyle{ A+B }[/math] is defined by
- [math]\displaystyle{ A+B=\{a+b:a\in A, \, b\in B\}. }[/math]
To the set [math]\displaystyle{ A }[/math] we can associate a unique binary number [math]\displaystyle{ \beta(A) }[/math] as follows. Let [math]\displaystyle{ m=\max(A) }[/math]. For [math]\displaystyle{ i=0,1,\ldots,m }[/math] we define
- [math]\displaystyle{ b_i=\begin{cases} 1& \text{if } i\in A\\ 0 &\text{if } i\notin A\end{cases} }[/math]
and then we define
- [math]\displaystyle{ \beta(A)=b_mb_{m-1}\ldots b_0. }[/math]
It has been proved that
- [math]\displaystyle{ \beta(A+B)=\beta(A)\times\beta(B) }[/math] where the "[math]\displaystyle{ \times }[/math]" on the right denotes the lunar multiplication on binary numbers.[4]
Magic squares of squares using lunar arithmetic
A magic square of squares is a magic square formed by squares of numbers. It is not known whether there are any magic squares of squares of order 3 with the usual addition and multiplication of integers. However, it has been observed that, if we consider the lunar arithmetic operations, there are an infinite amount of magic squares of squares of order 3. Here is an example:[2]
- [math]\displaystyle{ \begin{matrix}44^2 & 38^2 & 45^2\\ 46^2&0^2&28^2\\ 18^2 &47^2 &8^2\end{matrix} }[/math]
See also
- Tropical arithmetic
References
- ↑ "A087097 Lunar primes (formerly called dismal primes)". The OEIS Foundation. https://oeis.org/A087097.
- ↑ 2.0 2.1 Woll, C (2019). "There Is a 3×3 Magic Square of Squares on the Moon—A Lot of Them, Actually.". The Mathematical Intelligencer 41: 73–76. doi:10.1007/s00283-018-09866-4. https://link.springer.com/article/10.1007%2Fs00283-018-09866-4. Retrieved 19 October 2021.
- ↑ 3.0 3.1 3.2 Applegate, David; LeBrun, Marc; Sloane, N. J. A. (2011). "Dismal Arithmetic". Journal of Integer Sequences 14. https://cs.uwaterloo.ca/journals/JIS/VOL14/Sloane/carry2.html. Retrieved 20 October 2021.
- ↑ Gal Gross (2021). "Maximally Additively Reducible Subsets of the Integers". Journal of Integer Sequences 23 (Article 20.10.5). https://cs.uwaterloo.ca/journals/JIS/VOL23/Gross/gross4.html. Retrieved 21 October 2021.
External links
Original source: https://en.wikipedia.org/wiki/Lunar arithmetic.
Read more |