Self-describing number

from Wikipedia, the free encyclopedia

A self-describing number is a natural number m, in which the nth digit indicates the frequency with which the digit n-1 occurs in this number. The number is thus self-describing in the sense that the number can be reconstructed solely from knowing its digits. It is b places long, consists only of the digits 0, 1,…, b-1 and is specified in the base b .

Examples

An example of a number that is self-describing in the decimal (base 10) system is 6210001000, since the number contains six zeros, two ones, one two, zero three, zero fours, zero five, one six, zero sevens, zero eight, and zero nines .

Some self-describing figures can be found in the following table:

Base b self-describing number
in this base b
(sequence A138480 in OEIS )
Value of the number in the decimal system (sequence A108551 in OEIS )

With bases greater than 10, it is common to use A = 10, B = 11, C = 12, etc. for lack of further digits.

properties

  • In the case of self-describing numbers, the number of digits in the number is equal to the base b (according to the definition).
  • In the case of self-describing numbers, the sum of the digits is equal to the number of digits in the number.
  • For self-describing numbers, the sum of the digits is equal to base b .
  • A self-describing number is always a multiple of its base b .
  • In the case of self-describing numbers, the last digit (in the ones place , which indicates how often the digit b-1 occurs in the number, written in the base b ) is always a zero.
  • Self - describing numbers in base b are always Harshad numbers (that is, they are always divisible by their digit sum when they are written in base b ).
  • There are no self-describing numbers made up of two, three or six digits.

generalization

If you allow the number of digits to be smaller than the base b , but the digits still indicate how often they appear in the number, the number is called an autobiographical number .

Example: The number 42101000 is in the base 8 (with the eight digits 0 to 7) a self-describing number because it consists of 4 zeros, 2 ones, 1 twos, 0 threes, 1 fours, 0 fives, 0 sixes and 0 sevens . There are no more digits in the eight-digit system . The number 42101000 is not a self-describing number in the decimal system (i.e. with the base 10 with the ten digits 0 to 9) because it does not have 10 digits. But it is an autobiographical number because, as before, it still consists of 4 zeros, 2 ones, 1 twos, 0 threes, 1 fours, 0 fives, 0 sixes and 0 sevens. There are more digits in the decimal system (the number of eights and nines is missing in the number), but with autobiographical numbers it is not necessary to state all higher digits as long as they do not appear in the number.

literature

  • Clifford Pickover: Keys to Infinity . Wiley, New York 1995, ISBN 978-0-471-19334-0 , Chapter 28: “Chaos in Ontario”, pp. 217-219,

Web links