How did I not know this? The decimal expansion of 2017 repeats every 2016 digits!

@skalyan @christianp I think it has to do with the multiplication group of non-zero integers mod n. The size of the group is n-1, so the cycles are going to be factors of that, and the decimal repeats based on the cycle generated by 10?

skalyan@skalyan@mathstodon.xyz@christianp Looking through the list, it often seems to be the case that the number of repeated digits is either \(n-1\) or \(\frac{n-1}{2}\). I’m sure there’s a theorem to be proved here (and I’m sure someone has already done so).