cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A348637 Largest clock triangle area.

Original entry on oeis.org

1, 2, 9, 9, 0, 3, 5, 3, 0, 7, 1, 0, 7, 3, 3, 2, 6, 3, 2, 7, 3, 9, 7, 2, 0, 1, 1, 3, 8, 8, 2, 4, 9, 6, 6, 9, 5, 5, 5, 6, 7, 5, 6, 0, 6, 6, 5, 9, 5, 3, 3, 3, 9, 3, 6, 9, 4, 2, 9, 1, 3, 7, 3, 1, 6, 8, 5, 7, 8, 8, 4, 1, 6, 8, 5, 6, 0, 5, 6, 7, 7, 7, 5, 7, 1, 2, 4, 8, 2, 5, 5, 1, 9, 4, 6, 4, 3, 1, 3, 6, 3, 7, 8, 6, 8
Offset: 1

Views

Author

Robert B Fowler, Oct 26 2021

Keywords

Comments

Consider an analog clock face to be a unit circle, with unit-length clock hands; the endpoints of the hands lie on the unit circle and form the vertices of a Clock Triangle inscribed within the circle.
The area within this Clock Triangle has maximum value 1.2990353071..., which occurs around 02:54:35 and at its mirror image around 09:05:25.
At time T seconds after 00:00:00, the clock hands are at angles
S (seconds hand) = T/60 * 360, (degrees)
M (minutes hand) = T/60/60 * 360,
H (hours hand) = T/60/60/12 * 360.
The clock cycle repeats every 12 hours = 43200 seconds.
The second 6 hours of the cycle is a mirror image of the first 6 hours.
The area within the Clock Triangle at any time is equal to
F(T) = abs(sin(H-M) + sin(M-S) + sin(S-H))/2.
(The derivation of this equation is not overly-complicated.)
The hour and minute hands are exactly 120 degrees apart at times
T = 14400/11*(3k+1) and T = 14400/11*(3k+2) for integer k.
There are 22 such times during every 12-hour cycle.
Empirically examining the relative extrema of F(T) near these 22 times, it is found that the largest F(T) occurs near T = 10475 (02:54:35), and near its mirror image T = 32725 (09:05:25).
Using Newton's iterative method to solve for Tmax in F'(Tmax) = 0,
Tmax = 10474.561690797181984...
F(Tmax) = 1.299035307107332...
Note: an equilateral triangle has area sqrt(3)*3/4 = 1.2990381056...

References

  • H. E. Dudeney, Amusements in Mathematics, Dover, 1958, pages 11 and 154; Problem #63, "The Stop-Watch", notes that at times 02:54:35 and 09:05:25 the clock hands are "nearly equidistant" and that "exact equidistance for the three hands is not possible", but does not point out that these two times are the most nearly equidistant times in the 12-hour clock cycle. Of the 430 puzzles in the book, 4 are represented on the front cover illustration; the stop-watch appears in the very center.

Crossrefs

Programs

  • Mathematica
    f[x_] := (Abs[Sin[2*Pi*x*(1/43200 - 1/3600)] + Sin[2*Pi*x*(1/3600 - 1/60)] + Sin[2*Pi*x*(1/60 - 1/43200)]])/2; RealDigits[FindMaximum[f[x], {x, 10475}, WorkingPrecision -> 110][[1]], 10, 100][[1]] (* Amiram Eldar, Oct 27 2021 *)

A348758 Times on a 12-hour digital clock with 6 digits at which the angle of the sector enclosing the three continuously moving hands of an analog clock has a local minimum.

Original entry on oeis.org

0, 10505, 21111, 31616, 42122, 52727, 63233, 73838, 84344, 94849, 105455, 120000
Offset: 1

Views

Author

Hugo Pfoertner, Oct 31 2021

Keywords

Comments

The inclusion of the second hand leads to solutions differing from those of A120500. Apart from the perfect match at midnight or noon, the other minima are characterized by small angles > 0 between the hour and the minute hands and a coincidence of the second hand with one of the other two hands. It turns out that the coincidence of the minute and second hands never leads to the smaller angle value. The exact times in seconds are given by A348759, with rounding to nearest second applied to determine the terms of this sequence.

Examples

			See A348759.
		

Crossrefs

Programs

  • PARI
    vector(12, i, my(t=((i-1)*719\/11)*43200\/719); t\3600*10000 + t%3600\60*100 + t%60) \\ Ruud H.G. van Tol, Jan 07 2025

Formula

a(n) = round(A348759(n)*43200/719) seconds since 00:00:00, expressed as hhmmss. - Robert B Fowler, Jan 05 2023

A348759 (43200/719)*{a(n)} are the times, measured in seconds from 00:00:00, at which the angle of the sector enclosing the three hands of an analog clock has a local minimum.

Original entry on oeis.org

0, 65, 131, 196, 261, 327, 392, 458, 523, 588, 654, 719
Offset: 1

Views

Author

Hugo Pfoertner, Oct 31 2021

Keywords

Comments

The global minimum occurs at midnight or at noon, when the positions of all three clock hands coincide exactly. All other minima are characterized by the fact that the position of the second hand coincides exactly with the position of the hour hand. The neighboring situation in which the second hand coincides with the minute hand leads in all possible cases to a slightly larger angle between the minute and hour hand.

Examples

			In order to determine the minimum central angle of the sector between the hour hand and the minute hand, the configurations located next to the exact matches occurring 11 times per clock cycle (corresponding to A120500) must be considered, in which the position of the second hand is either equal to the minute hand or is equal to the hour hand.
The position of the second hand coincides 719 times per clock cycle with the hour hand and 12*59 = 708 times with the minute hand. The following coincidences lie in the vicinity of the first local minimum, which clearly occurs shortly after 01:05.
Coincidence of minute hand and second hand after 64/59 hours (= 230400/59 seconds). At this point in time, the minute hand has an angle of 2*Pi*5/59 = Pi*10/59 radians. The hour hand is at 2*Pi*(230400/59)/43200 = Pi*32/177 radians. The difference angle is therefore Pi * 2/177 radians = 2.0338983 degrees.
Coincidence of hour hand and second hand after 2808000/719 seconds. This corresponds with an angle of Pi*130/719 radians. At the same time, the minute hand is at Pi*122/719 radians, making a difference angle of Pi*8/719 radians = 2.002781641 degrees.
This angle is slightly smaller than the aforementioned difference angle of 2.0338983 degrees, i.e., the coincidence between the hour hand and the second hand determines the exact position of the minimum and thus a(2) = 2808000/43200 = 65.
Rounded to full seconds, the two points in time that are approximately 0.34 seconds apart lead to the same full seconds value of 5 s, which results in A348758(2) = 10505 corresponding to the time of 01:05:05.
A similar calculation for the other candidate configurations shows that the coincidence between the second hand and the hour hand always leads to the smaller difference angle. The terms of A348758 can easily be determined by converting the fractional second values of the present sequence to the hh:mm:ss form, including rounding to the nearest second and then dropping the two colons.
		

Crossrefs

Formula

a(n) = round(n*719/11). - Robert B Fowler, Dec 26 2022

A350141 Times when clock hands are most nearly equidistant - expressed exactly as a(n)*43200/1427 seconds after 00:00:00.

Original entry on oeis.org

43, 86, 172, 217, 303, 346, 432, 475, 563, 606, 692, 735, 821, 864, 952, 995, 1081, 1124, 1210, 1255, 1341, 1384
Offset: 1

Views

Author

Robert B Fowler, Dec 15 2021

Keywords

Comments

The three hands of an analog 12-hour clock are never exactly equidistant (mutually 120 degrees apart), but they are very nearly so at 22 times during the 12-hour clock cycle. These 22 cases occur at exactly a(n)*43200/1427 seconds after 00:00, according to the simple "midpoint" definition given below, although three other (more complicated) definitions of near-equidistance are also described here. 11 cases occur in the first 6 hours, and each has a mirror image case in the second 6 hours. For all n = 1..22, a(n) mirrors a(23-n).
There are at least four ways to define the precise times when each case attains its nearest equidistance. For each case, the four definitions generate four distinct solutions, which all lie within a fraction of a second from each other. The best pair of cases occur near 02:54:34.5 and its mirror image 09:05:25.5, which correspond to a(6) = 346 and a(17) = 1081. The second-best pair is a(11) and a(12). The third to 11th best are a(n) for n = 1, 5, 7, 2, 10, 8, 4, 9, 3 (and their mirrors 23 - n).
MIDPOINT (definition #1). The simplest definition first locates each of the 22 times when the hour and minute hands are exactly 120 degrees apart, then determines the nearest time (earlier or later) when the second hand is exactly midway between them and around 120 (not 60) degrees from each of them. The midpoint solution times occur at exactly a(n)*43200/1427 seconds after 00:00. The a(n) are found using the FORMULA below. Midpoint times are used as first approximations when calculating solution times for the other three definitions. A347040 gives standard clock times for a(n), rounded to the nearest second, in integer format hh:mm:ss.
LARGEST TRIANGLE AREA (definition #2). The best solution occurs when the triangle whose vertices are the endpoints of the three clock hands has maximum area. See A348637.
LEAST SQUARES (definition #3). The best solution occurs when the sum of the squares of the deviations of the angles of each pair of clock hands from 120 degrees is minimum. To find this time, express time T in units of 12-hours (T = 0 at 00:00 and T = 1 at 12:00), and express all clock hand angles A in units of 120 degrees (3 units = 360 degrees). In these units, the midpoint times are T(n) = a(n)/1427, and the three clock hand angles at any time T are
A(1) = hour-hand to second-hand angle = 3*(720-1)*T = 2157*T,
A(2) = minute-hand to second-hand angle = 3*(720-12)*T = 2124*T,
A(3) = hour-hand to minute-hand angle = 3*(12-1)*T = 33*T.
At any time near any T(n), all three A(j) will be near-integer, with their variances from 120 degrees represented by
V(j) = abs(A(j) - round(A(j))).
At exactly time T(n), these variations are all integer multiples of 1/1427, given by
V(3) = abs(33*a(n) - 1427*k)/1427,
V(1) = V(2) = V(3)/2,
where k is defined in the FORMULA below, and is equal to floor((3n-1)/2).
The sum of the squared variances to be minimized near time T(n) is
F(T) = V(1)^2 + V(2)^2 + V(3)^2.
The least-squares time t occurs when F'(t) = 0. The values of t are rational numbers.
LEAST VARIANCE (definition #4). The best solution occurs when the sum of the absolute values of the deviations of the angles of each pair of clock hands from 120 degrees is minimum. To find this time, use the same A(j) and V(j) as defined in the least-squares solution above, but instead minimize the sum of the variances
G(T) = V(1) + V(2) + V(3).
The least variance time u occurs when G'(u) = 0. The values of u are rational numbers.

Examples

			For n = 6, we have k = 8, m = floor(11416/33) = 345, a(6) = 346.
This corresponds to a midpoint time of 346*43200/1427 seconds after 00:00:00, which is a clock time 02:54:34.562018220042046...
Comparison of solutions according to the four definitions:
  ---------------------  ---------------------------  ----------------
       DEFINITION        Conventional Clock Times     12-hour Cycles
  ---------------------  ---------------------------  ----------------
  (#1) Midpoint          02:54:34.562018220042046...  346/1427
  (#2) Largest triangle  02:54:34.561690797181984...  (no closed form)
  (#3) Least squares     02:54:34.561691213006188...  246915/1018346
  (#4) Least variances   02:54:34.547983310152990...  523/2157
  ---------------------  ---------------------------  ----------------
		

Crossrefs

Programs

  • Maple
    a := proc(n) n + iquo(n - 1, 2): iquo(1427 * %, 33): % + irem(% - %%, 2) end: # Peter Luschny, Dec 17 2021
  • Mathematica
    a[n_] := Module[{k = n + Floor[(n - 1)/2], m}, m = Floor[1427*k/33]; If[EvenQ[m - k], m, m + 1]]; Array[a, 22] (* Amiram Eldar, Dec 16 2021 *)

Formula

a(n) = m + mod(m - k, 2) where k = n + floor((n-1)/2) and m = floor(k*1427/33).
Showing 1-4 of 4 results.