A292579 Inverse to A055643: Consider n as a number written in base 60, using 2 decimal digits for each base-60 digit (which we allow to be in the range 0 .. 99), and write n in base 10.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69
Offset: 0
Examples
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.
Crossrefs
Cf. A055643.
Programs
-
PARI
A292579(n)=fromdigits(digits(n,100),60)
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].
Comments