OFFSET
2,4
COMMENTS
No digits are counted as repeating for 1/m if 1/m terminates.
Equivalent to 1 <= m <= n, since 1/n and 1/1 do not have repeating digits in any integer base n.
LINKS
Amiram Eldar, Table of n, a(n) for n = 2..10000
EXAMPLE
7th term considers octal: the fractions 1/2, 1/3, 1/4, 1/5, 1/6 and 1/7 have 0, 2, 0, 4, 2 and 1 repeating (octal) digits respectively, for a total of 9.
9th term considers decimal: the fractions 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, 1/8 and 1/9 have 0, 1, 0, 0, 1, 6, 0 and 1 repeating (decimal) digits respectively, for a total of 9.
MATHEMATICA
a[n_] := Sum[Length[RealDigits[1/k, n][[1, -1]]], {k, 2, n-1}]; Array[a, 100, 2] (* Amiram Eldar, Jun 28 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Will Nicholes, Jul 01 2010
EXTENSIONS
Data corrected and extended by Amiram Eldar, Jun 28 2024
STATUS
approved