OFFSET
0,3
COMMENTS
For the first 240000 terms, also the conversion of a digital clock display H:MM:SS to seconds, i.e., a(HMMSS) yields the number of seconds after midnight corresponding to that time, with leading zeros allowed: 0 <= H <= 24, 0 <= MM, SS <= 59.
Numbers where SS or MM etc. are > 59 are strictly spoken invalid in base 60. However, in order to "fill in the gaps" in a meaningful way, we simply do allow SS, MM, etc. to take values up to 99. (The ISO specification for writing time and date does actually allow SS to take values including 60 in order to account for leap seconds, as it allows H to be equal to 24 to denote midnight at the end of a day.) Therefore a(60+k) = 60+k for k < 40, but a(100+k) = 60+k, a(200+k) = 120+k etc, for 0 <= k <= 99.
FORMULA
a(n) = n - [n/100]*40 - [n/10^4]*40*60 - [n\10^6]*40*60^2 - ..., where [.] denotes the floor function.
A292579 o A055643 = A001477 (the identity map on the set of nonnegative integers), i.e., for all n >= 0, A292579(A055643(n)) = n.
Also, A055643(A292579(n)) = n for all n in the range of A055643, which are the "valid base-60 numbers", i.e., excluding 60, ..., 99, 160, ..., 199 etc. The latter (60, ...) are "converted" by A055643 o A292579 to correct base-60 numbers, i.e., 60 -> 100, 99 = 60 + 39 -> 139, 9999 -> 14039 since 99*60 + 99 = 6039 = 1*60^2 + 40*60 + 39 = 14039[60].
EXAMPLE
Interpreted in base-60, HMMSS[60] = H*60^2 + MM*60 + SS. Thus, e.g., a(100) = 60, a(123456) = 12*3600 + 34*60 + 56 = 45296.
In contrast to (most) digital clocks, MM and SS may take values up to 99. For example, a(199) = 1*60 + 99 = 159.
PROG
(PARI) A292579(n)=fromdigits(digits(n, 100), 60)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Jan 09 2018
STATUS
approved