OFFSET
2,2
COMMENTS
We conjecture that the sequence b is always eventually periodic, and so a(n)>0.
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 2..250 (terms 2..100 from Giovanni Resta)
EXAMPLE
For n=5, b-sequence begins 0,1,1,2,3,1,4,1,1,2,... It has period {1,1,2,3,1,4} of length 6. So a(5)=6.
a(10) = 120, because the eventual period of A069638 is 120.
PROG
(Python)
import sympy, functools
def digits2int(x, b):
return functools.reduce(lambda n, d:b*n+d, x, 0)
def A237671(n):
return next(sympy.cycle_length(lambda x:(x[1], digits2int(sorted(sympy.ntheory.factor_.digits(sum(x), n)[1:]), n)), (0, 1)))[0] # Pontus von Brömssen, Aug 28 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev and Peter J. C. Moses, Feb 11 2014
STATUS
approved