Teaser 2664: Time ‘n’ again
From The Sunday Times, 13th October 2013 [link] [link]
Time and again at school we would be given the exercise of changing a fraction into a decimal.
This time the given fraction is in its simplest form and it equals a recurring decimal. In some places the digits have been consistently replaced by letters, with different letters used for different digits, but in four places the digits have merely been replaced by asterisks:
TIME / **N** = .AGAINAGAIN…
Numerically, what is the TIME?
[teaser2664]



Jim Randell 9:06 am on 24 October 2023 Permalink |
The fraction:
is in its lowest form, but may also be written:
So it follows that the numerator and denominator of the first fraction can be scaled up by an integer value (k) to give the numerator and denominator of second fraction.
And k must be a 1-digit divisor of 99999.
The only possible values are k=3 or k=9, meaning
The following run file executes in 74ms. (Internal runtime of the generated program is 1.8ms).
Run: [ @replit ]
Solution: TIME = 5269.
And we have:
LikeLike
Hugo 1:36 pm on 24 October 2023 Permalink |
99999 = 3² × 41 × 271. 11111 = 41 × 271.
41 is the smallest value of n such that multiples and submultiples of 1/n recur with period five.
5269 = 11 × 479, and AGAIN = 47421 is 9 times as much.
LikeLike