The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A201144 The pebble sequence: a(n) is the length of the longest non-repeating sequence of pebble-moves among the partitions of n. 2

%I #19 Jan 02 2023 12:30:48

%S 1,2,3,5,6,7,8,9,11,13,13,13,14,19,21,21,18,19,22,29,31,31,25,25,26,

%T 33,41,43,43,36,32,33,37,46,55,57,57,49,41,41,42,51,61,71,73,73,64,55,

%U 50,51,56,67,78,89,91,91,81,71,61,61,62,73,85,97,109,111,111,100,89,78,72,73,79,92,105,118,131,133,133,121,109,97,85,85,86,99,113,127,141,155,157,157,144,131,118,105,98,99,106,121

%N The pebble sequence: a(n) is the length of the longest non-repeating sequence of pebble-moves among the partitions of n.

%C You have n pebbles arranged in several piles. At each turn you take one pebble from each pile and put them into a new pile.

%C For example, if you start with one pile of 6, at the next step there are two piles: {1,5}, then {2,4}, and so on. Eventually the sequence of partitions will repeat.

%C Here a(n) is the maximal number of steps before a repeat among all starting partitions.

%H Jorgen Brandt, <a href="http://dx.doi.org/10.1090/S0002-9939-1982-0656129-5">Cycles of Partitions</a>, Proc. AMS, Vol. 85, No. 3 (July, 1982), pp. 483-486

%H Tanya Khovanova and others, <a href="http://list.seqfan.eu/oldermail/seqfan/2009-November/002937.html">Postings to the Sequence Fans Mailing List</a>, circa Nov 18 2009

%e For example, for n = 6, the worst case is {2,2,1,1}, and the steps are: {2, 2, 1, 1}, {1, 1, 4}, {3, 3}, {2, 2, 2}, {1, 1, 1, 3}, {2, 4}, {1, 2, 3}, {1, 2, 3}, {1, 2, 3}, {1, 2, 3}, {1, 2, 3}. Hence a(6) = 7.

%t In[33]:= << Combinatorica`

%t step[list_] := Sort[Select[Prepend[list - 1, Length[list]], # > 0 &]]

%t cycleStart[list_] := (res = 1; sofar = {list}; current = list;

%t nextStep = Nest[step, current, 1];

%t While[! MemberQ[sofar, nextStep], res++; current = nextStep;

%t nextStep = Nest[step, current, 1]; sofar = Append[sofar, current]];

%t res)

%t Table[Max[Map[cycleStart, Partitions[n]]], {n, 30}]

%t Out[36]= {1, 2, 3, 5, 6, 7, 8, 9, 11, 13, 13, 13, 14, 19, 21, 21, 18, 19, 22, 29, 31, 31, 25, 25, 26, 33, 41, 43, 43, 36}

%Y For the length of the longest cycle, see A183110. For the length of the shortest cycle, see A054531.

%K nonn

%O 1,2

%A _N. J. A. Sloane_, Nov 27 2011

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 May 13 16:16 EDT 2024. Contains 372522 sequences. (Running on oeis4.)