... times the digit 1 ... times the digit 2 ... times the digit 3 ... times the digit 4 ... times the digit 5 ... times the digit 6 ... times the digit 7 ... times the digit 8 ... times the digit 9 |
The numbers on the left have to be filled in so that the sentence in the table is true.
Here i will give:
... xb-1 times the digit b-1 |
Sometimes, this process will lead after several iterations to a solution; but it may also cycle without giving a solution, for example (1,7,4,1,1,1,1,1,2,1) - (1,8,2,1,2,1,1,2,1,1) is one cycle in base 10 .
Therefore, i will use another exhaustive method: starting with every possible (sufficient) p-plet (x0 ,...), and check wether it is a solution, but NOT applying an iterative process on these numbers.
First, it is necessary to delimit the numbers, finding a maximum value
for each of the xi. Such a limit must exist, because even if
the number xi is very large, and i count the different zeros,
ones, ... in the b-cimal representation of xi , these
frequences are much smaller numbers than xi itself.
1. length (number of digits) of a number n in base b:
[ logb(n) ] where [ ] is the integer part
2. if x0 , x1 , ... , xb-1 <= M,
the xi have together at most
b . [ logb(M) ] digits
3. in the extreme case, when all these digits are the same,
then this digit appears
1 + b . [ logb(M) ] times in the table
4. now choose M such that
M >= 1 + b . ( 1+ logb (M) )
( because [ logb(M) ] <= 1 + logb (M) ,
this assures, if all the xi <= M, then x'i <= M)
5. to solve this inequality, study the function
f(x) = x - 1 - b . (1 + logb (x))
when x goes from 0+ to +oo , f goes from -oo to +oo
So, it is possible to pick M as the first integer for which f(M)>0.
Here is the table of results:
| b | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 16 | 20 | 36 | 100 | 1000 | 10000 | M | 10 | 11 | 13 | 15 | 17 | 19 | 21 | 23 | 25 | 28 | 30 | 38 | 47 | 82 | 218 | 2110 | 20796 |
Another reflection allows to reduce the b-plets, by requiring
0 < x0 <= x1 <= ... <=
xb-1
and calculating x'0, x'1, ... ,
then rearrange the x'i in ascending order and compare
with x0, x1, ...
When they match, then the initial x'0, x'1,
... is a solution.
... times the stroke | |
2. Both solutions for base 7, 8, 9, 10 can be written in a
general form and apply for each base b:
if b >= 3: (1,b+1,2,1,1, ...,1) (the last b-3 numbers are ones)
if b >= 7: (1,b-3,3,2,1*,1*, ...,1*) (* the last b-4 numbers are
all ones, except xb-3 = 2 )