Self number

Last updated

In number theory, a self number or Devlali number in a given number base is a natural number that cannot be written as the sum of any other natural number and the individual digits of . 20 is a self number (in base 10), because no such combination can be found (all give a result less than 20; all other give a result greater than 20). 21 is not, because it can be written as 15 + 1 + 5 using n = 15. These numbers were first described in 1949 by the Indian mathematician D. R. Kaprekar. [1]

Contents

Definition and properties

Let be a natural number. We define the -self function for base to be the following:

where is the number of digits in the number in base , and

is the value of each digit of the number. A natural number is a -self number if the preimage of for is the empty set.

In general, for even bases, all odd numbers below the base number are self numbers, since any number below such an odd number would have to also be a 1-digit number which when added to its digit would result in an even number. For odd bases, all odd numbers are self numbers. [2]

The set of self numbers in a given base is infinite and has a positive asymptotic density: when is odd, this density is 1/2. [3]

Recurrent formula

The following recurrence relation generates some base 10 self numbers:

(with C1 = 9)

And for binary numbers:

(where j stands for the number of digits) we can generalize a recurrence relation to generate self numbers in any base b:

in which C1 = b  1 for even bases and C1 = b  2 for odd bases.

The existence of these recurrence relations shows that for any base there are infinitely many self numbers.

Selfness tests

Reduction tests

Luke Pebody showed (Oct 2006) that a link can be made between the self property of a large number n and a low-order portion of that number, adjusted for digit sums:

  1. In general, n is self if and only if m = R(n)+SOD(R(n))-SOD(n) is self Where:
    R(n) is the smallest rightmost digits of n, greater than 9.d(n)
    d(n) is the number of digits in n
    SOD(x) is the sum of digits of x, the function S10(x) from above.
  2. If , then n is self if and only if both {m1 & m2} are negative or self Where:
    m1 = c - SOD(a)
    m2 = SOD(a-1)+9·b-(c+1)
  3. For the simple case of a=1 & c=0 in the previous model (i.e. ), then n is self if and only if (9·b-1) is self

Effective test

Kaprekar demonstrated that:

n is self if

Where:

is the sum of all digits in n.
is the number of digits in n.

Self numbers in specific bases

For base 2 self numbers, see OEIS:  A010061 . (written in base 10)

The first few base 10 self numbers are:

1, 3, 5, 7, 9, 20, 31, 42, 53, 64, 75, 86, 97, 108, 110, 121, 132, 143, 154, 165, 176, 187, 198, 209, 211, 222, 233, 244, 255, 266, 277, 288, 299, 310, 312, 323, 334, 345, 356, 367, 378, 389, 400, 411, 413, 424, 435, 446, 457, 468, 479, 490, ... (sequence A003052 in the OEIS )

In base 12, the self numbers are: (using A and B for ten and eleven, respectively)

1, 3, 5, 7, 9, B, 20, 31, 42, 53, 64, 75, 86, 97, A8, B9, 102, 110, 121, 132, 143, 154, 165, 176, 187, 198, 1A9, 1BA, 20B, 211, 222, 233, 244, 255, 266, 277, 288, 299, 2AA, 2BB, 310, 312, 323, 334, 345, 356, 367, 378, 389, 39A, 3AB, 400, 411, 413, 424, 435, 446, 457, 468, 479, 48A, 49B, 4B0, 501, 512, 514, 525, 536, 547, 558, 569, 57A, 58B, 5A0, 5B1, ...

Self primes

A self prime is a self number that is prime.

The first few self primes in base 10 are

3, 5, 7, 31, 53, 97, 211, 233, 277, 367, 389, 457, 479, 547, 569, 613, 659, 727, 839, 883, 929, 1021, 1087, 1109, 1223, 1289, 1447, 1559, 1627, 1693, 1783, 1873, ... (sequence A006378 in the OEIS )

The first few self primes in base 12 are:

3, 5, 7, B, 31, 75, 255, 277, 2AA, 3BA, 435, 457, 58B, 5B1, ...

In October 2006 Luke Pebody demonstrated that the largest known Mersenne prime in base 10 that is at the same time a self number is 2240365831. This is then the largest known self prime in base 10 as of 2006.

Extension to negative integers

Self numbers can be extended to the negative integers by use of a signed-digit representation to represent each integer.

Excerpt from the table of bases where 2007 is self

The following table was calculated in 2007.

BaseCertificateSum of digits
4048
41
4240
43
4436
4479
45
4681
47
48
49
5048
51
5260
53
5476
55
5641
57
5863
59
6089

Related Research Articles

<span class="texhtml mvar" style="font-style:italic;">e</span> (mathematical constant) Constant value used in mathematics

The number e is a mathematical constant approximately equal to 2.71828 that can be characterized in many ways. It is the base of the natural logarithm function. It is the limit of as n tends to infinity, an expression that arises in the computation of compound interest. It is the value at 1 of the (natural) exponential function, commonly denoted It is also the sum of the infinite series

In mathematics, a transcendental number is a real or complex number that is not algebraic – that is, not the root of a non-zero polynomial of finite degree with rational coefficients. The best-known transcendental numbers are π and e.

<span class="mw-page-title-main">Euler's totient function</span> Number of integers coprime to and not exceeding n

In number theory, Euler's totient function counts the positive integers up to a given integer n that are relatively prime to n. It is written using the Greek letter phi as or , and may also be called Euler's phi function. In other words, it is the number of integers k in the range 1 ≤ kn for which the greatest common divisor gcd(n, k) is equal to 1. The integers k of this form are sometimes referred to as totatives of n.

10 (ten) is the even natural number following 9 and preceding 11. Ten is the base of the decimal numeral system, the most common system of denoting numbers in both spoken and written language.

11 (eleven) is the natural number following 10 and preceding 12. It is the first repdigit. In English, it is the smallest positive integer whose name has three syllables.

19 (nineteen) is the natural number following 18 and preceding 20. It is a prime number.

A highly composite number is a positive integer with more divisors than any smaller positive integer has. A related concept is that of a largely composite number, a positive integer which has at least as many divisors as any smaller positive integer. The name can be somewhat misleading, as the first two highly composite numbers are not actually composite numbers; however, all further terms are.

In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for "repeated unit" and was coined in 1966 by Albert H. Beiler in his book Recreations in the Theory of Numbers.

<span class="mw-page-title-main">Multiply perfect number</span> Number whose divisors add to a multiple of that number

In mathematics, a multiply perfect number is a generalization of a perfect number.

Balanced ternary is a ternary numeral system that uses a balanced signed-digit representation of the integers in which the digits have the values −1, 0, and 1. This stands in contrast to the standard (unbalanced) ternary system, in which digits have values 0, 1 and 2. The balanced ternary system can represent all integers without using a separate minus sign; the value of the leading non-zero digit of a number has the sign of the number itself. The balanced ternary system is an example of a non-standard positional numeral system. It was used in some early computers and has also been used to solve balance puzzles.

63 (sixty-three) is the natural number following 62 and preceding 64.

<span class="mw-page-title-main">Cube (algebra)</span> Number raised to the third power

In arithmetic and algebra, the cube of a number n is its third power, that is, the result of multiplying three instances of n together. The cube of a number or any other mathematical expression is denoted by a superscript 3, for example 23 = 8 or (x + 1)3.

In mathematics, a harshad number in a given number base is an integer that is divisible by the sum of its digits when written in that base. Harshad numbers in base n are also known as n-harshad numbers. Harshad numbers were defined by D. R. Kaprekar, a mathematician from India. The word "harshad" comes from the Sanskrit harṣa (joy) + da (give), meaning joy-giver. The term "Niven number" arose from a paper delivered by Ivan M. Niven at a conference on number theory in 1977.

<span class="mw-page-title-main">Schönhage–Strassen algorithm</span> Multiplication algorithm

The Schönhage–Strassen algorithm is an asymptotically fast multiplication algorithm for large integers, published by Arnold Schönhage and Volker Strassen in 1971. It works by recursively applying fast Fourier transform (FFT) over the integers modulo 2n+1. The run-time bit complexity to multiply two n-digit numbers using the algorithm is in big O notation.

In number theory, Kaprekar's routine is an iterative algorithm named after its inventor, Indian mathematician D. R. Kaprekar. Each iteration starts with a number, sorts the digits into descending and ascending order, and calculates the difference between the two new numbers.

In number theory, a narcissistic number in a given number base is a number that is the sum of its own digits each raised to the power of the number of digits.

5 (five) is a number, numeral and digit. It is the natural number, and cardinal number, following 4 and preceding 6, and is a prime number. It has garnered attention throughout history in part because distal extremities in humans typically contain five digits.

A repeating decimal or recurring decimal is a decimal representation of a number whose digits are eventually periodic ; if this sequence consists only of zeros, the decimal is said to be terminating, and is not considered as repeating. It can be shown that a number is rational if and only if its decimal representation is repeating or terminating. For example, the decimal representation of 1/3 becomes periodic just after the decimal point, repeating the single digit "3" forever, i.e. 0.333.... A more complicated example is 3227/555, whose decimal becomes periodic at the second digit following the decimal point and then repeats the sequence "144" forever, i.e. 5.8144144144.... Another example of this is 593/53, which becomes periodic after the decimal point, repeating the 13-digit pattern "1886792452830" forever, i.e. 11.18867924528301886792452830....

In arithmetic, a complex-base system is a positional numeral system whose radix is an imaginary or complex number.

In number theory and mathematical logic, a Meertens number in a given number base is a natural number that is its own Gödel number. It was named after Lambert Meertens by Richard S. Bird as a present during the celebration of his 25 years at the CWI, Amsterdam.

References

  1. "Self Numbers". rstudio-pubs-static.s3.amazonaws.com. Retrieved 2024-02-29.
  2. Sándor & Crstici (2004) p.384
  3. Sándor & Crstici (2004) p.385