Saturday, 1 February 2025

Super Attractors

In my own private terminology, I deem a number an odd-even attractor if its sums of odd digits and even digits are the same. I use the term attractor because numbers that are not attractors are "attracted" to such numbers. For example, let's take the case of 134. Here the sum of the odd numbers is 1 + 3 = 4 and the sum of the even numbers is 4. Thus it is an odd-even attractor. 

Let's take a number like 122 that is not an odd-even attractor. The sum of the even digits (4) exceeds the sum of the odd digits (1).  The difference between odd and even digits is 1 - 4 = -3 and this will be added to the original number to get 119. Now the sum of the odd numbers (11) exceeds that of the non-existent even numbers (0) and this is added to 119 to get 130. Repeating the process we get 134 which is an attractor.

In this system, I've chosen to subtract the sum of the even digits from the sum of the odd digits. This is quite arbitrary and I could have chosen to subtract the sum of the odd digits from the even digits but for odd-even or even-odd attractors this doesn't matter. A similar system can be adopted for prime and non-prime digits. The prime digits are 2, 3, 5 and 7 whereas the non-prime digits are 0, 1, 4, 6, 8 and 9. A number wherein the sum of the prime digits equals that of the non-prime digits is called, in my nomenclature, a prime-non-prime attractor. An example would be 358 where 3 + 5 = 8.

A number that is not a prime-non-prime attractor is 356. Here the sum of prime digits is 8 and the sum of the non-prime digits is 6. We chose to subtract the sum of non-prime digits from the sum of the prime digits to get 2 which we add to 356 to get 358 which is a prime-non-prime attractor.

The question that I was interested in is how many numbers are both odd-even attractors and prime-non-prime attractors? We might term these super attractors. In the range up to 40000, there are 222 such numbers (permalink) and they are:

112, 121, 211, 336, 358, 363, 385, 538, 583, 633, 835, 853, 1012, 1021, 1102, 1120, 1201, 1210, 2011, 2101, 2110, 3036, 3058, 3063, 3085, 3306, 3360, 3445, 3454, 3467, 3476, 3508, 3544, 3580, 3603, 3630, 3647, 3674, 3746, 3764, 3805, 3850, 4345, 4354, 4367, 4376, 4435, 4453, 4534, 4543, 4556, 4565, 4578, 4587, 4637, 4655, 4673, 4736, 4758, 4763, 4785, 4857, 4875, 5038, 5083, 5308, 5344, 5380, 5434, 5443, 5456, 5465, 5478, 5487, 5546, 5564, 5645, 5654, 5667, 5676, 5748, 5766, 5784, 5803, 5830, 5847, 5874, 6033, 6303, 6330, 6347, 6374, 6437, 6455, 6473, 6545, 6554, 6567, 6576, 6657, 6675, 6734, 6743, 6756, 6765, 6778, 6787, 6877, 7346, 7364, 7436, 7458, 7463, 7485, 7548, 7566, 7584, 7634, 7643, 7656, 7665, 7678, 7687, 7768, 7786, 7845, 7854, 7867, 7876, 8035, 8053, 8305, 8350, 8457, 8475, 8503, 8530, 8547, 8574, 8677, 8745, 8754, 8767, 8776, 10012, 10021, 10102, 10120, 10201, 10210, 11002, 11020, 11200, 12001, 12010, 12100, 20011, 20101, 20110, 21001, 21010, 21100, 30036, 30058, 30063, 30085, 30306, 30360, 30445, 30454, 30467, 30476, 30508, 30544, 30580, 30603, 30630, 30647, 30674, 30746, 30764, 30805, 30850, 33006, 33060, 33600, 34045, 34054, 34067, 34076, 34405, 34450, 34504, 34540, 34607, 34670, 34706, 34760, 35008, 35044, 35080, 35404, 35440, 35800, 36003, 36030, 36047, 36074, 36300, 36407, 36470, 36704, 36740, 37046, 37064, 37406, 37460, 37604, 37640, 38005, 38050, 38500

Figure 1 shows the rather uneven distribution of such numbers in the range up to 40000:


Figure 1

All of the numbers greater than 10000 contain the digit 0. Attractors are very much base-specific and thus fall into the realm of recreational mathematics. The big gaps occur between 12100 and 20011 and 21100 and 30036. Numbers that are not attractors of either sort but are close to super attractors do not necessarily end up attracted to the nearest attractor. 

Take 30035 that is next to the super attractor 30036. Here is its prime-non-prime trajectory:

3003530046300393003630036

While it ends up at the nearby super attractor, the same is not true when subjected to the odd-even trajectory:

300353004630039300543005830058

It ends up at the more distant super attractor 30058.

No comments:

Post a Comment