Showing posts with label date. Show all posts
Showing posts with label date. Show all posts

Wednesday, 29 April 2026

Numbers as Dates

When I turned 28000 days old, there was no way to turn this number into a date until I reached 28100 days old. At this point, it's possible via this stratagem:

28 - 1 - 00 --> 28th January 1900

There is ambiguity here because 00 could be interpreted as representing 2000 but I'll stick with 1900 for reasons that I'll make apparent. Yesterday I turned 28149 days old which converts as follows:

28 - 1 - 49 --> 28th January 1949

Hmmm. On that date, I was not yet born although I was a seven month old foetus. However, today I'm 28150 days old and this converts as follows:

28 - 1 - 50 --> 28th January 1950

Now by that date I had been born and was about ten months old. The interesting thing is that when I turn 30449 days old, this can be made to correspond to my birthday in the following way:

3 - 04 - 49 --> 3rd April 1949

There's ambiguity here because 30449 can also be made into another date:

30 - 4 - 49 --> 30th April 1949

All this requires that we admit to leading zeros when we want them, omit them when we don't and make choices to suit ourselves when confronted with competing alternatives. In other words, flexibility is required. This process is not continuous. It works until I exceed 28999 since:

28 - 9 - 99 --> 28th September 1999

However, 29000 doesn't work and this number to date conversion only becomes possible again when I reach 29100 since:

29 - 1 - 00 --> 29th January 1900

With the leading two digits being 29, care must be taken with leap years and February. What happens with 29200?

29 - 2 - 00 --> 29th February 1900

Is the 29th of February 1900 a valid date? It is if 1900 were a leap year but it's not since it's not divisible by 400. If we interpret the date as 29th February 2000 however, then the date is valid since 2000 was a leap year. Sticking with the twentieth century convention, valid dates only arise with 29204, 29208, 29212, ... , 29288, 29292, 29296.

After reaching 29300, there's no problem with the leading two digits being 29 and things will be fine until I reach 30000. The number to date conversion will kick in again at 30100 and I'll reach 30449 without any gaps. All this is hardly serious mathematics but fun nonetheless. 

In all of this, I've adopted a day - month - year format switching between DD-M-YY and D-MM-YY as it suits me. This works well whereas other formats lead to lots of inadmissable dates and aren't as much fun.

Friday, 2 August 2024

A Long Way Home

With large composite numbers, the path to a home prime can be a long one. This is certainly true of today's composite number 20240802 corresponding to today's date of 2nd August 2024.$$20240802=2 \times 3^2 \times 863 \times 1303$$I wondered why the algorithm running in my Jupiter Notebook was taking so long to calculate the home prime for today's number. It turns out that 51 steps are required before a home prime is reached. Here's the progression (toward the bottom of the list the larger numbers may run onto the next line):

20240802, 
2338631303, 
2953791951,
311233891689,
33741160974887,
311088424547577,
3347298836142697,
46728012558965891,
64269417270645951,
3713131313117863595291,
73131473868929224040761,
7157142964517218506685541,
37461590937100697383704241,
676775575541914812748937421,
33370837121353850660547143863,
103512102850518963266335968989,
127815055927956842230443590307,
3333334978717647771371995485881457,
35545734763423801200354273504161619,
3115096476834788845097622093725646027,
3171315807287116497834303893733982641037,
1938593133169178678118176191414687586788699,
7806127981924834247371605710953994219337521,
1113109500810161155118640365150812276512107483,
79263561175470733867058721787851202039247470829,
199350779397608484767800851518411783020176720951,
313893271587387422969396469847860991092333976542173,
19916894174850252716742066231437827881452587132198347,
333185411566209479042084941629363924712738008623074892523,
3223494969430572079429042941294041931241139987441774025309,
32950793229023376852456919797337294607377341857102318172479,
301958427353613415282754723578180598828447843204448262081363, 43671933129241050741953825012470051854111324175024183278643133, 3713710348596620298325276499784604740144926044521019175560918133, 43432033318665629558961303257652524300665434496179740124768638737, 438318191912142630256950384088336721700875079874885901277773615661, 33952660372710397050719260552116633226209979280798089039448973313459, 235473639043239560844701954001988841885040187355225129838688185185493, 333671045063366301288318623135523361878429909102403826971796025548984839, 7415772280289158642876806700567063245584286858045263726536419020786144949, 31915460753992647178331840969114638386529105925505411017314020817595444429481, 388215755079417212095611247626509474236722043804223179439175841269325900221647, 43119489467805082469367345227763064513316151461945387396217629252808742563363617, 7178040010219740423774713801327263673054482930504828408891656467662033385134241117, 109316473995628413986454085350966468455812414207316882972860619920620319817943453409, 2323834579133836345413046351762997943556241757630498282284882868364567485130261890219, 317300267606964982136843437711517492491619282822669294694863577107023014585554599905739, 52328463255749224374714279838161134823233769307043696613665389077650729417404884413292271, 3714392062034766290224112375598877216263278646829696160089485291757181880256559477546163399, 3394732071391164431104598827162026435326822795676460127579388576883851144072368157718797931641083, 19294447233994807147867590543139812872007673327880662223899101540689566880289506377715917567105333859
7772349034187438087121221820512743165100759812317447221713249182984386976343967857556366241938724210083

That final number is indeed prime while all the previous numbers back to our starting point of 20240802 are composite. Contrast this with yesterday's date number, 20240801, where:$$ 20240801=7 \times 2891543 $$The progression involves only two steps and is:$$20240801 \rightarrow 72891543 \rightarrow 3191278799$$The day before yesterday only six steps were needed for 20240731 to reach a home prime. 

I've written about home primes in earlier blog posts including Home Primes on 2nd May 2021. There are 471 numbers less than 10000 for which there are no known home primes with 49 being the first. It would seem likely that there are many composite numbers without home primes amongst the numbers generated from the daily dates. 

Tuesday, 14 March 2023

Hidden Connections

In a separate blog of mine, I was writing about the introduction of a Central Bank Digital Currency or CBDC as it's most conveniently referred to. Whenever I see letters, I also see numbers. Such is my affliction. The numbers I see lie behind the letters when they are viewed as placeholders for numbers in non-decimal bases. In the case of CBDC, the obvious number base to consider is hexadecimal, base 16.

Bases of 14 and 15 are possible but they are not commonly used whereas hexadecimal is ubiquitous. So what decimal number does a hexadecimal CBDC convert to then. The answer is 52188. What are the hidden connections I refer to? Well, the connection lies in its factorisation which is \( 2^2 \times 3 \times 4349 \).

The connection is only apparent to me because I'm born on April 3rd 1949 which can be written as 4-3-49 in date notation and compressed to 4349. The smaller initial factors \(2^2=4\) and \(3\) reinforce this. I'm not suggesting any deep connection between myself and CBDC.  I'm just pointing this out as a mathematical curiosity. 

It's interesting to me to be able to see numbers lurking behind words and letters. See my recent post: Elements, Letters and Numbers. I also find it interesting to see dates as numbers and numbers as dates. See my recent posts: The Julian Day Number, Special Numbers, Special Dates, Turning Dates Into Numbers.

Getting back to my birthdate and birthdates in general, it can be observed that birthdates or any dates can be interpreted as numbers in the following ways using my birthdate as the example:

  • DD - MM - YY with leading zeros and intermediate zeros optionally omitted.

    For example, 03 - 04 - 49 --> 30449 or, as it's said, "third of the fourth forty nine" (3449)

  • MM - DD - YY with leading zeros omitted and intermediate zeros optionally omitted.

    For example, 04 - 03 - 49 --> 40349 or, as it's said, "fourth of the third forty nine" (4349)

  • DD - MM - YYYY

    For example, 03041949 --> 3041949 or, as it's said, "third of the fourth nineteen forty nine" (341949)

  • MM - DD - YYYY

    For example, 04 - 03 - 1949 --> 4031949 or, as it's said, "fourth of the third nineteen forty nine" (431949)

  • YYYYMMDD

    For example, 19490403 and intermediate zeros are not usually dropped here. It's this format that I focused on in my blog titled Turning Dates into Numbers back in January of 2023.
Of these various representations, only three are prime:

3 - 4 - 49 = 3449 = 3449
3- 04 - 49 = 30449
4 - 3 - 49 = 4349
4 - 03 - 49 = 157 * 257
3 - 4 - 1949 = 3 * 113983
3 - 04 - 1949 = 3 * 43 * 23581
4 - 3 - 1949 = 3 * 7 * 67 * 307
4 - 03 - 1949 = 3 * 1343983
1949 - 04 - 03 = 3 * 167 * 38903

Wednesday, 15 February 2023

Special Numbers, Special Dates

On the 26th January 2023, I posted about Turning Dates Into Numbers and made the observation that the 10th February 2023 was a special day because the number associated with this date (20230210) had the interesting property that it was the only date in the year that produced a number that had seven distinct prime factors:

20230210 = 2 x 5 x 7 x 11 x 13 x 43 x 47

It turns out that this number has another interesting property in that the sum of its digits equals the last two digits (representing the day of the month). In fact, it begins a run of ten consecutive numbers that end with 20230219 (the 19th February 2023) ... permalink:

20230210, 20230211, 20230212, 20230213, 20230214, 20230215, 20230216, 20230217, 20230218, 20230219

Another run of ten similar numbers occurs in November, starting on the 10th and ending on the 19th.

20231110, 20231111, 20231112, 20231113, 20231114, 20231115, 20231116, 20231117, 20231118, 20231119

For many, many years to come, the sum of the digits of the numbers associated with the dates will always contain two digits. Today is the 15th February 2023 and so we are into the second half of the first-mentioned run.

This number can be expressed as a sum of three cubes
See Figure 2

Similar runs will occur every year but the dates will differ naturally. For example, in 2024, the first run of numbers will begin on 11th January 2024 with 20240111 and end on 19th January 2024 with 20240119. 

In my previous post Turning Dates Into Numbers I looked at what numbers were prime, semiprime and so on. In this post I'll turn my attention to cubes and see what numbers can be expressed as the sum of two cubes and as a sum of three cubes. 

It turns out that there is only one number in the entire year that can be expressed as a sum of two cubes and that is \( 20231020 = 69^3 + 271^3\). This corresponds to the 20th October 2023.

The sums of three cubes are more common. The complete list is shown in Figure 2, arranged in chronological order with 20th January being the first date and 26th December the last.


Figure 2: permalink

It can be noted that some dates produce numbers that can be expressed as sums of three cubes in more than one way. Specifically, 20230426 (two ways), 20230523 (two ways), 20230722 (two ways), 20230904 (two ways), 20230911 (three ways), 20231028 (two ways) and 20231226 (two ways). Thus the 11th September (the famous 911 in United States date format) produces the only number (20230911) that can be expressed as a sum of three cubes in three ways.

Thursday, 26 January 2023

Turning Dates Into Numbers

26th January 2023 --> 20230126

There are a variety of ways in which a unique date could be converted into a unique number but perhaps the most logical is the concatenation of year, month and day to generate the number. For example, today's date is 26th January 2023 and thus the concatenation of 2023, 01 and 26 produces 20230126. The leading zero is important or else ambiguity occurs with certain dates. For example, 11th January 2023 produces 2023111 but the 1st November 2023 will also produce 2023111. For this reason, the format YYYYMMDD with leading zeros included must be followed.

Follow this link for SageMath code to generate the output below.

The numbers increase by 1 with each passing day and every number is unique and can thus be examined for whatever properties are of interest. Each year will produce 365 numbers or 366 numbers when there is a leap year. Let's look at the numbers that are produced for the year 2023:

20230101, 20230102, 20230103, 20230104, 20230105, 20230106, 20230107, 20230108, 20230109, 20230110, 20230111, 20230112, 20230113, 20230114, 20230115, 20230116, 20230117, 20230118, 20230119, 20230120, 20230121, 20230122, 20230123, 20230124, 20230125, 20230126, 20230127, 20230128, 20230129, 20230130, 20230131, 20230201, 20230202, 20230203, 20230204, 20230205, 20230206, 20230207, 20230208, 20230209, 20230210, 20230211, 20230212, 20230213, 20230214, 20230215, 20230216, 20230217, 20230218, 20230219, 20230220, 20230221, 20230222, 20230223, 20230224, 20230225, 20230226, 20230227, 20230228, 20230301, 20230302, 20230303, 20230304, 20230305, 20230306, 20230307, 20230308, 20230309, 20230310, 20230311, 20230312, 20230313, 20230314, 20230315, 20230316, 20230317, 20230318, 20230319, 20230320, 20230321, 20230322, 20230323, 20230324, 20230325, 20230326, 20230327, 20230328, 20230329, 20230330, 20230331, 20230401, 20230402, 20230403, 20230404, 20230405, 20230406, 20230407, 20230408, 20230409, 20230410, 20230411, 20230412, 20230413, 20230414, 20230415, 20230416, 20230417, 20230418, 20230419, 20230420, 20230421, 20230422, 20230423, 20230424, 20230425, 20230426, 20230427, 20230428, 20230429, 20230430, 20230501, 20230502, 20230503, 20230504, 20230505, 20230506, 20230507, 20230508, 20230509, 20230510, 20230511, 20230512, 20230513, 20230514, 20230515, 20230516, 20230517, 20230518, 20230519, 20230520, 20230521, 20230522, 20230523, 20230524, 20230525, 20230526, 20230527, 20230528, 20230529, 20230530, 20230531, 20230601, 20230602, 20230603, 20230604, 20230605, 20230606, 20230607, 20230608, 20230609, 20230610, 20230611, 20230612, 20230613, 20230614, 20230615, 20230616, 20230617, 20230618, 20230619, 20230620, 20230621, 20230622, 20230623, 20230624, 20230625, 20230626, 20230627, 20230628, 20230629, 20230630, 20230701, 20230702, 20230703, 20230704, 20230705, 20230706, 20230707, 20230708, 20230709, 20230710, 20230711, 20230712, 20230713, 20230714, 20230715, 20230716, 20230717, 20230718, 20230719, 20230720, 20230721, 20230722, 20230723, 20230724, 20230725, 20230726, 20230727, 20230728, 20230729, 20230730, 20230731, 20230801, 20230802, 20230803, 20230804, 20230805, 20230806, 20230807, 20230808, 20230809, 20230810, 20230811, 20230812, 20230813, 20230814, 20230815, 20230816, 20230817, 20230818, 20230819, 20230820, 20230821, 20230822, 20230823, 20230824, 20230825, 20230826, 20230827, 20230828, 20230829, 20230830, 20230831, 20230901, 20230902, 20230903, 20230904, 20230905, 20230906, 20230907, 20230908, 20230909, 20230910, 20230911, 20230912, 20230913, 20230914, 20230915, 20230916, 20230917, 20230918, 20230919, 20230920, 20230921, 20230922, 20230923, 20230924, 20230925, 20230926, 20230927, 20230928, 20230929, 20230930, 20231001, 20231002, 20231003, 20231004, 20231005, 20231006, 20231007, 20231008, 20231009, 20231010, 20231011, 20231012, 20231013, 20231014, 20231015, 20231016, 20231017, 20231018, 20231019, 20231020, 20231021, 20231022, 20231023, 20231024, 20231025, 20231026, 20231027, 20231028, 20231029, 20231030, 20231031, 20231101, 20231102, 20231103, 20231104, 20231105, 20231106, 20231107, 20231108, 20231109, 20231110, 20231111, 20231112, 20231113, 20231114, 20231115, 20231116, 20231117, 20231118, 20231119, 20231120, 20231121, 20231122, 20231123, 20231124, 20231125, 20231126, 20231127, 20231128, 20231129, 20231130, 20231201, 20231202, 20231203, 20231204, 20231205, 20231206, 20231207, 20231208, 20231209, 20231210, 20231211, 20231212, 20231213, 20231214, 20231215, 20231216, 20231217, 20231218, 20231219, 20231220, 20231221, 20231222, 20231223, 20231224, 20231225, 20231226, 20231227, 20231228, 20231229, 20231230, 20231231

A question could be asked such as how many of these numbers are prime? Well, as it turns out, only 18 and these are:

20230103, 20230109, 20230121, 20230201, 20230219, 20230303, 20230411, 20230517, 20230519, 20230619, 20230621, 20230831, 20230919, 20231011, 20231017, 20231023, 20231129, 20231203

It's easy enough to write an algorithm (permalink) to return these numbers to their equivalent dates.

03 - 01 - 2023

09 - 01 - 2023

21 - 01 - 2023

01 - 02 - 2023

19 - 02 - 2023

03 - 03 - 2023

11 - 04 - 2023

17 - 05 - 2023

19 - 05 - 2023

19 - 06 - 2023

21 - 06 - 2023

31 - 08 - 2023

19 - 09 - 2023

11 - 10 - 2023

17 - 10 - 2023

23 - 10 - 2023

29 - 11 - 2023

03 - 12 - 2023

My habit is to investigate the number associated with my diurnal age, meaning the number of days that have elapsed since I was born, counting the day I was born as day zero. These numbers have a personal significance and are only shared by individuals born on the same date as myself, namely 3rd April 1949. A more impersonal investigation could be carried out using the numbers associated with the daily date. The only drawback is that these eight digit numbers often turn up nothing in the OEIS or Online Encyclopedia of Integer Sequences. For example, today's number of 20230126 turns up nothing. See Figure 1.


Figure 1

The OEIS is my major source of information about numbers and their properties so this is unfortunate. Numbers Aplenty, my next most popular source of information, does generate some output. See Figure 2.


Figure 2

These numbers offer an opportunity to investigate larger numbers because my diurnal age is limited to five digit numbers (I am 26961 days old). Take today's number of 20231026. This number has four distinct prime factors (2, 7, 97 and 14897) and so the question could be asked: how many dates in 2023 produce numbers that have four distinct prime factors? The answer is 52 and these are:

20230105, 20230114, 20230122, 20230126, 20230206, 20230215, 20230221, 20230223, 20230226, 20230302, 20230305, 20230306, 20230315, 20230322, 20230323, 20230330, 20230401, 20230406, 20230410, 20230413, 20230414, 20230419, 20230422, 20230503, 20230507, 20230509, 20230602, 20230606, 20230611, 20230706, 20230710, 20230719, 20230727, 20230730, 20230806, 20230815, 20230914, 20230917, 20230922, 20231003, 20231007, 20231029, 20231030, 20231102, 20231105, 20231106, 20231110, 20231115, 20231130, 20231214, 20231222, 20231230

Overall it can be said that in 2023 there are:

  • 18 primes
  • 66 semiprimes with distinct prime factors
  • 82 sphenic numbers
  • 51 numbers with four distinct prime factors
  • 11 numbers with five distinct prime factors
  • 1 number with seven distinct prime factors (20230210 → 10-02-2023)

Thus it can be seen that the 10th February 2023 produces the only number that has seven distinct prime factors. 

20230210 = 2 x 5 x 7 x 11 x 13 x 43 x 47

It can also be noted that no palindromic number is possible this year. Here are the numbers that are palindromic between 2000 up to 2090 (I hope it's complete):

  • 20011002
  • 20100102
  • 20111102
  • 20211202
  • 20300302
  • 20400402
  • 20500502
  • 20600602
  • 20700702
  • 20800802
  • 20900902

This year the smallest number, 20230101, and the largest, 20231231, have a difference of 1130 but only 365 numbers in this range are possible in terms of dates.

So we'll see what comes of this. It's another mathematical toy to play around with. See my post The Julian Day Number on the 16th February 2023 for information that relates to this problem of numbering the days of each year.

Here is a permalink to a program that will accept a date as input and display the output as a YYYYMMDD number with factorisation and a Julian Day Number with factorisation. For example, entering 2026-0516 gives the following output:

Valid Date: 2026-05-16
------------------------------
Concatenated Number: 20260516
Prime Factorization: 2^2 * 23 * 191 * 1153
------------------------------
Julian Day Number:   2461177
Prime Factorization: 1213 * 2029