Lunar arithmetic, formerly called dismal arithmetic,
is a version of
arithmetic
Arithmetic () is an elementary part of mathematics that consists of the study of the properties of the traditional operations on numbers—addition, subtraction, multiplication, division, exponentiation, and extraction of roots. In the 19th c ...
in which the addition and multiplication
operations
Operation or Operations may refer to:
Arts, entertainment and media
* ''Operation'' (game), a battery-operated board game that challenges dexterity
* Operation (music), a term used in musical set theory
* ''Operations'' (magazine), Multi-Man ...
on digits are defined as the
max and min operations. Thus, in lunar arithmetic,
:
and
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
__NOTOC__
Neil James Alexander Sloane (born October 10, 1939) is a British-American mathematician. His major contributions are in the fields of combinatorics, error-correcting codes, and sphere packing. Sloane is best known for being the creator ...
.
In the general definition of lunar arithmetic, one considers numbers expressed in an arbitrary
base and define lunar arithmetic operations as the max and min operations on the digits corresponding to the chosen base.
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.
# The lunar addition and multiplication operations satisfy the
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Most familiar as the name o ...
and
associative
In mathematics, the associative property is a property of some binary operations, which means that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement ...
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,
and
. The
even number
In mathematics, parity is the property of an integer of whether it is even or odd. An integer is even if it is a multiple of two, and odd if it is not.. For example, −4, 0, 82 are even because
\begin
-2 \cdot 2 &= -4 \\
0 \cdot 2 &= 0 \\
4 ...
s are numbers of the form
. The first few distinct even numbers under lunar arithmetic are listed below:
:
These are the numbers whose digits are all less than or equal to 2.
Squares
A
square number
In mathematics, a square number or perfect square is an integer that is the square of an integer; in other words, it is the product of some integer with itself. For example, 9 is a square number, since it equals and can be written as .
The u ...
is a number of the form
. So in lunar arithmetic, the first few squares are the following.
:
Triangular numbers
A
triangular number
A triangular number or triangle number counts objects arranged in an equilateral triangle. Triangular numbers are a type of figurate number, other examples being square numbers and cube numbers. The th triangular number is the number of dots i ...
is a number of the form
. The first few triangular lunar numbers are:
:
Factorials
In lunar arithmetic, the first few values of the
factorial
In mathematics, the factorial of a non-negative denoted is the product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial:
\begin
n! &= n \times (n-1) \times (n-2) ...
are as follows:
:
Prime numbers
In the usual arithmetic, a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
is defined as a number
whose only possible factorisation is
. Analogously, in the lunar arithmetic, a prime number is defined as a number
whose only factorisation is
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:
:
:
Every number of the form
, where
is arbitrary, is a prime in lunar arithmetic. Since
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
sumset In additive combinatorics, the sumset (also called the Minkowski sum) of two subsets A and B of an abelian group G (written additively) is defined to be the set of all sums of an element from A with an element from B. That is,
:A + B = \.
The n-fo ...
s of subsets of nonnegative integers and lunar multiplication on
binary number
A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" ( zero) and "1" (one).
The base-2 numeral system is a positional notati ...
s. Let
and
be nonempty subsets of the set
of nonnegative integers. The sumset
is defined by
:
To the set
we can associate a unique binary number
as follows. Let
.
For
we define
:
and then we define
:
It has been proved that
:
where the "
" on the right denotes the lunar multiplication on binary numbers.
Magic squares of squares using lunar arithmetic
A magic square of squares is a
magic square
In recreational mathematics, a square array of numbers, usually positive integers, is called a magic square if the sums of the numbers in each row, each column, and both main diagonals are the same. The 'order' of the magic square is the number ...
formed by squares of numbers. It is not known whether there are magic square of square 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 infinity of magic squares of squares of order 3. Here is an example:
:
See also
*
Tropical arithmetic
References
External links
* {{YouTube, cZkGeR9CWbk, Primes on the Moon (Lunar Arithmetic)
Multiplication
Elementary arithmetic
Arithmetic
Prime numbers
Integer sequences