login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A282535
a(n) is the maximum number of "describing"-steps for an n-chain before entering a loop.
0
3, 4, 7, 4, 7, 7, 7, 6, 7, 6, 7, 7, 7, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
OFFSET
4,1
COMMENTS
Conjecture: The size of terms of this sequence is unbounded (cf. Marichal, 2007, Corollary 5).
LINKS
Jean-Luc Marichal, On perfect, amicable, and sociable chains, arXiv:0708.1491 [math.CO], 2007.
PROG
(PARI)
pad(d, n) = while(#d != n, d = concat([0], d)); d;
say(d, n) = vector(n, k, sum(j=1, #d, d[j] == (k-1)));
isok(v, n) = my(vs = vecsort(v, , 8)); (#vs > 1) && (#vs <n);
vsearch(v, x) = for (i=1, #v, if (v[i] == x, return (i)); );
a(n) = {nmax = 0; for (i=0, n^n-1, d = digits(i, n); d = pad(d, n); circuit = [i]; pos = 0; if (isok(d, n), while (! pos, sd = say(d, n); if (! isok(sd, n), break); isd = fromdigits(sd, n); pos = vsearch(circuit, isd); if (! pos, circuit = concat(isd, circuit); d = sd, start = #circuit - pos; nmax = max(nmax, start); ); ); ); ); nmax; } \\ Michel Marcus, Feb 25 2017
CROSSREFS
Sequence in context: A316498 A200681 A161775 * A193967 A109823 A337124
KEYWORD
nonn,more
AUTHOR
Felix Fröhlich, Feb 17 2017
EXTENSIONS
Name edited by Michel Marcus, Feb 26 2017
STATUS
approved