OFFSET
1,2
EXAMPLE
MATHEMATICA
d[n_] := Length @ ContinuedFraction[DivisorSigma[0, n] / DivisorSigma[-1, n]]; seq[len_, nmax_] := Module[{s = Table[0, {len}], dprev = -1, n = 1, c = 0, k = 0}, While[k < len && n < nmax, d1 = d[n]; If[d1 == dprev, c++, If[c > 0 && c <= len && s[[c]] == 0, k++; s[[c]] = n - c]; c = 1]; n++; dprev = d1]; TakeWhile[s, # > 0 &]]; seq[7, 10^5]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Nov 20 2021
STATUS
approved