Hi everyone,
Hope all is well.
In base 10, when we divide m by n (where is not a multiple of n), the decimal expansion terminates if and only if the prime factors of n are only 2 and/or 5. In these cases, appending zeros during long division is sufficient, and the division will eventually terminate. For such denominators, we define a(n) = 0.
But what if n has prime factors other than 2 and 5? In that case, appending zeros alone will never terminate the division. However, if we repeatedly append a different number instead of zero, the division can terminate.
For example:
If n = 3, appending 1 works. ( 1/3à 11/3à 21/3 = 7). So, a(3) = 1.
If n = 6, appending 2 works. (2/6à 22/6à 12/6 = 2 and 5/6à 52/6à 42/6 = 7.) So, a(6) =2.
If n = 11, appending 12 works (1/11à 112/11à 212/11à 312/11à 412/11à 512/11à 612/11à 712/11à 812/11à 912/11 à1012/11 = 92). So, a(11) = 12.
My question is: does this work for all integers n? In other words, for every n, does a number exist that can be repeatedly appended (in base 10) so that the division eventually terminates?
Best,
Ali