login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)