Factor clock
The factor clock displays the time in the form , that is, as
, and then decomposes the number
into prime factors. For example, a quarter of an hour after eleven o’clock, at 11:15:00, the following is displayed:
. The somewhat strange idea of reading the time (including the seconds) as a decimal number and then factorizing it goes back to the Internet comic series xkcd, see Figure 1 below:
And now … the mathematics of it:
Part 1: Facts
Because ,
and
must be valid, not all of the 1000000 six-digit numbers occur, but only as many as the day has seconds, namely 86400. Among them are 7669 prime numbers. The last prime number time before midnight is 23:59:51. The number 235951 is number 20903 among all prime numbers, but only number 7669 among the factor clock primes. However, the majority of the 7669 prime numbers that the factor clock can display are not seen by the visitors of the MATHEMATICS ADVENTURE LAND because they are outside the opening hours of the museum:
- Between 9:00 and 18:00 there are 2731 factor clock primes.
- Of these, 2440 are in the weekday opening hours 9:00–17:00 and 2407 are in the weekend opening hours 10:00–18:00.
- About five prime numbers can be expected per minute, with a slightly higher frequency in the morning than in the evening.
- At most there are nine prime numbers in one minute (i.e. from
to
. This occurs ten times, at 9:00, 10:05, 11:09, 11:31, 11:53, 12:13, 12:20,13:06, 14:04, and 15:28).
- Between 11:52:49 and 11:53:43 there are 11 prime numbers within 54 seconds.
- You have to wait more than a minute for the next prime number from 10:12:21 (62 seconds), 10:27:01 (70 seconds), 12:17:27 (76 seconds) and 14:29:49 (64 seconds).
- There are 859 prime twins among the factor clock primes.
- Between 9:00 a.m. and 6:00 p.m., there are 278 twins, of which 255 are in the 9:00 a.m.-5:00 p.m. opening time and 242 are in the 10:00 a.m.-6:00 p.m. opening time.
- Approximately every two minutes a prime twin is to be expected, whereby the frequency is somewhat higher in the morning than in the evening.
- Prime twins are especially common around 9:40, 12:20, and 15:20.
- You have to wait especially long for a prime twin starting at 10:55:29 (7:52), 12:27:43 (8:08), 15:02:23 (7:24), 16:34:11 (7:36), and 17:49:31 (7:00).
- Curiously, there is even a “factor clock prime triple”: 11:52:59, 11:53:01, 11:53:03.
Part 2: The algorithm of Fermat
The basic method for decomposing a given natural number into prime factors is based on an algorithm first given by Pierre de Fermat (c. 1608–1668).
Fermat’s factorization method looks for two square numbers and
that satisfy the equation
(with
a natural number). Then, based on the 3rd binomial formula,
and and
are the sought divisors of
. The Fermat’s method thereby finds exactly those divisors
and
that are closest to the root of
.
Although the method is one of the slowest known procedures that do this, this method has a certain importance in mathematics, since almost all fast factorization procedures known today go back to Fermat’s method.
In detail, the following procedure is to be carried out:
To factorize a natural number, one computes for starting at
(i.e., at the smallest integer greater than the square root of
)
. As soon as one of these numbers is a square number, e.g.
, one can specify a multiplicative decomposition of
, whose two factors then have to be subjected to the procedure again. It is namely according to the 3rd binomial formula
. The search can be terminated when
exceeds
, since then it is already certain that
is a prime number. However, this termination condition is only valid for odd numbers
, but this can always be achieved by multiplicatively splitting off the highest power of 2 before starting this procedure.
An example shall illustrate this:
The number (i.e. the time 2:48 o’clock and 6 seconds) is to be factorized. Then first the factor 2 is to be multiplicatively split off and one receives
and can apply the procedure to
. Since the square root of 12403 is approximately 111.368, one begins by determining
for
. In this case we get
.
Consequently, and
, i.e.
and
are obtained as prime factors, i.e.
or
on the display of the factor clock in MATHEMATICS ADVENTURE LAND at the time 2:48 o’clock and 6 seconds.
Literature
[1] Bundschuh, P.: Einführung in die Zahlentheorie, 6. Auflage, Berlin, 2008.
[2] Du Sautoy, M.: Die Musik der Primzahlen. Auf den Spuren des größten Rätsels der Mathematik, München, 2004.
[3] Padberg, F.: Elementare Zahlentheorie, 3. Auflage, Heidelberg, 2008.
[4] Wolfart, J.: Einführung in die Algebra und Zahlentheorie, Braunschweig / Wiesbaden, 1996.