My original and basic question is:
How do I detect whether a rational number has a repetend when expressed with a different radix?
Here is my question restated as an example:
Given 0.125(10), is there a way, without actually performing the conversion, to know that it terminates in base 6 as 0.043 but repeats in base 5 as 0.030303...? I don't actually care about the converted value.
Before marking this as duplicate, please continue to read. I know my question is related to this question, but mine is generalized to any radix. That question has an intriguing comment by @labbhattacharjee which says, "in base B, if d(i)∣B, then..."
I'm sorry I cannot repeat it here because I'm not sure how to format it. I also don't know how to parse it. Assuming it's correct, would someone please explain, plainly, what it means? Also, it seems to involve pi and I can't think why it would, unless capital pi means something different from the pi I know and love. I didn't study advanced math; please go easy on me.
In my case, the rational number is guaranteed to not have a repetend in the starting radix. For the purposes of this question, a repeating zero is the same as not having a repetend.