There are only 17 decimal numbers that satisfy in this range. These are listed below in decimal form only:
145, 257, 1589, 2631, 2743, 2816, 2917, 4032, 6735, 7965, 8064, 10408, 10548, 10698, 50731, 53140, 57281
If we wish to look at bases below 10 then the numbers will have the same or more digits and so the algorithm will need to be modified. We will require all the digits in base 10 format to be contained within the number in the lower base format and these digits need to be in the same proportion. Here are the results for base 8 in range from 8 to 40,000 (
Permalink):
Base 8 Decimal
107 --- 71
1347 --- 743
1357 --- 751
2371 --- 1273
3165 --- 1653
4152 --- 2154
6130 --- 3160
6131 --- 3161
6132 --- 3162
6133 --- 3163
6134 --- 3164
6135 --- 3165
6136 --- 3166
6137 --- 3167
6232 --- 3226
12765 --- 5621
13620 --- 6032
14562 --- 6514
15713 --- 7115
15720 --- 7120
15721 --- 7121
15722 --- 7122
15723 --- 7123
15724 --- 7124
15726 --- 7126
15727 --- 7127
15764 --- 7156
17074 --- 7740
37621 --- 16273
52371 --- 21753
73560 --- 30576
75341 --- 31457
102345 --- 34021
102473 --- 34107
103462 --- 34610
104365 --- 35061
105436 --- 35614
106273 --- 36027
106347 --- 36071
There are only 39 numbers that satisfy. Here is the list in decimal format only:
71, 743, 751, 1273, 1653, 2154, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3226, 5621, 6032, 6514, 7115, 7120, 7121, 7122, 7123, 7124, 7126, 7127, 7156, 7740, 16273, 21753, 30576, 31457, 34021, 34107, 34610, 35061, 35614, 36027, 36071
Thus it can be seen that whenever a number seems boring, there is always something of interest that remains to be discovered and that property can often be generalised, as was done here, to find interesting properties of other numbers.
Getting back to comparing decimal numbers to their hexadecimal equivalents we can make conditions more stringent by requiring that the lengths of both numbers be the same so that the digits of both are simply permutations of the other. In the range up to 100,000, there are 24 numbers that qualify. These are (
Permalink):
Hex Decimal
35 --- 53
173 --- 371
391 --- 913
1004 --- 4100
1415 --- 5141
1524 --- 5412
1826 --- 6182
2008 --- 8200
2419 --- 9241
12570 --- 75120
12571 --- 75121
12572 --- 75122
12573 --- 75123
12574 --- 75124
12575 --- 75125
12576 --- 75126
12577 --- 75127
12578 --- 75128
12579 --- 75129
12765 --- 75621
15086 --- 86150
16549 --- 91465
18197 --- 98711
18499 --- 99481
The numbers in decimal format only are:
53, 371, 913, 4100, 5141, 5412, 6182, 8200, 9241, 75120, 75121, 75122, 75123, 75124, 75125, 75126, 75127, 75128, 75129, 75621, 86150, 91465, 98711, 99481
Similarly in the range up to 100,000, there are only 16 numbers in base 8 format that have the same digits as their decimal equivalants (
Permalink):
Base 8 Decimal
2371 --- 1273
3165 --- 1653
4152 --- 2154
6130 --- 3160
6131 --- 3161
6132 --- 3162
6133 --- 3163
6134 --- 3164
6135 --- 3165
6136 --- 3166
6137 --- 3167
6232 --- 3226
37621 --- 16273
52371 --- 21753
73560 --- 30576
75341 --- 31457
Here are the numbers in decimal format only:
1273, 1653, 2154, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3226, 16273, 21753, 30576, 31457
Lightweight mathematics of course but sometimes it's good just to have fun with numbers. The table below shows the number of decimal numbers whose value in another base is an anagram of its digits. The bases range from 4 to 28. For bases 2 and 3 and for 29 and beyond, there are no such numbers.
Base 26 is interesting because the ten decimal numbers that satisfy are consecutive and the hexadecimal numbers formed from them are similarly consecutive and formed simply by moving the leading 9 of the decimal number one place to the right. Thus 910 in decimal becomes 190 in hexadecimal, 911 becomes 191 and so on until 919 that becomes 199.
Base 26 Decimal
190 --- 910
191 --- 911
192 --- 912
193 --- 913
194 --- 914
195 --- 915
196 --- 916
197 --- 917
198 --- 918
199 --- 919