*** Welcome to piglix ***

Digit-reassembly number


Digit-reassembly numbers, or Osiris numbers, are numbers that are equal to the sum of permutations of sub-samples of their own digits (compare the dismemberment and reconstruction of the god Osiris in Egyptian mythology). For example, 132 = 12 + 21 + 13 + 31 + 23 + 32.

In base ten, the smallest Osiris numbers are these, with a number-length of three digits and digit-span of two for the permutated sums:

Note that all are multiples of 132. A larger Osiris number in base ten is this, with a number-length of five digits and digit-span of three for the permutated sums:

If zero is treated as a full digit in all positions, then 207 in base ten is a maximal Osiris number, being equal to the sum of all possible distinct numbers formed from permutated sub-samples of its digits:

In other bases, maximal Osiris numbers exist that do not contain zeros. For example:

Using the same terminology, 132, 264 and 396 are minimal Osiris numbers, being equal to the sums of all numbers formed from permutated samples of only two of their digits. 35964 is also minimal, being the sum of samples of three digits, but 34658 is a multi-minimal Osiris number, being equal to the sums of all numbers formed from permutated samples of one or three of its digits:

30659 and 38657 are similarly multi-minimal, using permutated samples of one and three of their digits.

Testing for Osiris numbers is simplified when one notes that, for example, each digit of 132 occurs twice in the ones and tens position of the sums:

The test can be further simplified:

If only numbers with unique non-zero digits are considered, a three-digit number in base ten can have a digit-sum ranging from 6 = 1+2+3 to 24 = 7+8+9. If these potential digit-sums are used in the formula 2 x digit-sum x 11, the digit-sum of the result will determine whether or not the result is an Osiris number.

In 35964, each digit occurs 12 times in the ones, tens and hundreds position of the sums:

The test for further five-digit Osiris numbers of the same form (sampling three digits) will use potential digit-sums between 15 = 1+2+3+4+5 and 35 = 5+6+7+8+9. When this range of digit-sums is tested, only 35964 returns the same digit-sum as that used in the formula. These simplified tests considerably reduce the task of finding large Osiris numbers in a particular base. For example, to test by brute force whether permutated six-digit samples of n = 332,639,667,360 are equal to n would involve summing 665,280 numbers, where 665,280 = 12 x 11 x 10 x 9 x 8 x 7 = 12! / 6!. However, because each digit of n occurs 55440 times in each of the six possible positions in the samples, the test is reduced to this:


...
Wikipedia

...