OFFSET
3,1
COMMENTS
Terminating expansions, in any base, are considered to have a cycle period of length 0.
It appears by observation that all terms in the sequence are either primes or powers of primes.
EXAMPLE
a(3)=2 since in base 3, 1/2 is represented by 0.111... with a cycle of 1 repeating digit, which is the longest cycle among 1/x for x = 1..2.
a(10)=7 since in base 10, 1/7 is represented by 0.142857... with a cycle of 6 repeating digits, which is the longest cycle among 1/x for x = 1..9.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Itamar Zamir, May 05 2023
STATUS
approved