OFFSET
1,3
MATHEMATICA
DigitCycleLength[r_Rational, b_Integer?Positive]:=MultiplicativeOrder[b, FixedPoint[Quotient[ #, GCD[ #, b]]&, Denominator[r]]]; Table[If[n<2, 1, DigitCycleLength[1/n^3, 10]], {n, 5!}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 29 2010
STATUS
approved