Friday, 17 April 2026

Digit Equations Continued

My post of March 2024 titled Forming Equations from the Digits of a Number expanded an idea that I'd broached in a far earlier post in August of 2013. I'm relating in this current post on my interaction with Gemini in helping me to determine all the numbers between 1 and 40000 that can't be rendered as digit equations. Firstly let's recap what the rules for rendering are:

  • only digits can be manipulated not combinations of digits, that is no concatenations
  • the order of the digits cannot be changed
  • only the operations of addition, subtraction, multiplication, division and exponentiation are allowed
  • division can be divided into e.g. 2 | 8 or divided by e.g. 8 / 2
  • an unlimited number of brackets can be used
  • unary operations are allowed meaning any digit can be changed into its negative.
What I got Gemini to do was to create a list of all the numbers from 1 to 40000 that CANNOT be rendered a digit equations. There are 4839 numbers that qualify in that range and of course the early numbers predominate. Figure 1 shows a graph of the distribution.


Figure 1

What is striking about the graph is that between 10979 and 20294, there are only two numbers that CANNOT be rendered as digit equations. These numbers are 15795 and 15975, each a permutation of the other's digits. Here is a link to the Gemini chat that I had which was long and involved: https://gemini.google.com/share/d704238c21fb.

Here are the numbers that CANNOT be rendered as digit equations from 28000 to 40000:

28027, 28049, 28108, 28120, 28210, 28255, 28270, 28290, 28308, 28383, 28395, 28429, 28474, 28494, 28558, 28585, 28672, 28708, 28759, 28849, 28908, 28959, 29049, 29059, 29109, 29120, 29130, 29169, 29210, 29212, 29229, 29230, 29239, 29240, 29260, 29269, 29280, 29284, 29292, 29293, 29296, 29309, 29379, 29392, 29397, 29409, 29410, 29420, 29432, 29433, 29460, 29467, 29479, 29480, 29490, 29494, 29509, 29510, 29514, 29530, 29537, 29559, 29569, 29572, 29573, 29577, 29587, 29589, 29590, 29595, 29596, 29598, 29599, 29609, 29659, 29673, 29679, 29692, 29697, 29739, 29749, 29769, 29779, 29793, 29794, 29796, 29797, 29809, 29859, 29937, 29959, 30292, 30295, 30424, 30464, 30497, 30592, 30637, 30727, 30738, 30757, 30794, 30797, 30828, 30837, 30848, 30857, 30868, 30938, 30949, 30959, 30968, 31027, 31607, 31667, 31677, 31707, 31708, 31717, 31767, 31778, 31787, 31788, 31807, 31808, 31818, 31877, 31878, 31887, 31898, 31908, 31977, 31987, 31988, 31998, 32535, 32597, 32737, 32957, 32979, 33585, 33597, 33727, 33737, 33747, 33828, 33858, 34647, 34737, 34746, 34747, 34757, 34758, 34847, 34858, 34949, 34959, 35105, 35106, 35235, 35253, 35325, 35352, 35358, 35385, 35397, 35405, 35445, 35450, 35470, 35477, 35499, 35527, 35605, 35606, 35650, 35656, 35665, 35670, 35747, 35775, 35835, 35838, 35853, 35868, 35874, 35885, 35886, 35905, 35927, 35949, 35959, 35995, 36105, 36106, 36107, 36474, 36505, 36506, 36556, 36560, 36565, 36566, 36590, 36706, 36707, 36717, 36760, 36766, 36767, 36776, 36780, 36807, 36868, 36885, 36886, 37027, 37106, 37107, 37108, 37117, 37167, 37176, 37177, 37178, 37187, 37188, 37198, 37207, 37210, 37237, 37240, 37255, 37270, 37273, 37295, 37299, 37306, 37308, 37327, 37337, 37347, 37372, 37373, 37374, 37437, 37447, 37457, 37464, 37473, 37474, 37475, 37484, 37507, 37508, 37547, 37574, 37592, 37606, 37607, 37608, 37617, 37618, 37650, 37666, 37667, 37670, 37671, 37676, 37680, 37690, 37698, 37699, 37806, 37807, 37808, 37817, 37818, 37855, 37860, 37870, 37871, 37877, 37878, 37887, 37888, 37890, 37891, 37907, 37908, 37929, 37952, 37953, 37979, 37997, 38107, 38108, 38109, 38118, 38120, 38167, 38168, 38177, 38178, 38187, 38188, 38189, 38197, 38198, 38208, 38283, 38307, 38309, 38310, 38328, 38340, 38355, 38356, 38358, 38360, 38365, 38370, 38382, 38383, 38385, 38388, 38390, 38408, 38458, 38535, 38538, 38548, 38558, 38562, 38568, 38574, 38583, 38584, 38585, 38586, 38607, 38608, 38652, 38658, 38668, 38685, 38686, 38707, 38708, 38709, 38717, 38718, 38745, 38755, 38760, 38777, 38778, 38780, 38781, 38787, 38788, 38790, 38907, 38908, 38909, 38917, 38918, 38950, 38960, 38961, 38965, 38966, 38967, 38970, 38980, 38981, 38988, 38989, 38998, 38999, 39027, 39108, 39109, 39178, 39188, 39198, 39199, 39279, 39292, 39297, 39409, 39449, 39459, 39494, 39495, 39509, 39528, 39537, 39549, 39558, 39559, 39594, 39595, 39708, 39729, 39779, 39792, 39797, 39808, 39809, 39817, 39818, 39855, 39860, 39867, 39870, 39871, 39888, 39889, 39890, 39891, 39898, 39899, 39927

In the SageMath program on my Jupyter notebook, I've added some additional code, courtesy of Gemini, that will render the number associated with my diurnal age as a digit equation or announce failure if a rendering is not possible. Of course, I'll try to create the equation myself before looking at the program's output. Today I'm 28138 days old:

No comments:

Post a Comment