Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A057542
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A057542 Maximum cycle length in each permutation between A038776[1] and A038776[A000108[n]]. +0
6
1, 1, 1, 3, 4, 16, 87, 202, 607, 1441, 4708 (list; graph; listen)
OFFSET

0,4

MAPLE

map(lmax, Bf2DfBinTreePermutationCycleLengths(some_value)); (e.g. 10)

bf2df := s -> (btbf2df(binrev(s), 0, 1)/2); # btbf2df and binrev given in A038776

Bf2DfBinTreePermutationCycleLengths := proc(upto_n) local u, n, a, r, b; a := []; for n from 0 to upto_n do b := []; u := (binomial(2*n, n)/(n+1)); for r from 0 to u-1 do b := [op(b), 1+CatalanRank(n, bf2df(CatalanUnrank(n, r)))]; od; a := [op(a), CycleLengths1(b)]; od; RETURN(a); end;

CycleLengths1 := b -> [[(nops(b)-convert(map(nops, convert(b, 'disjcyc')), `+`)), `*`, 1], op(map(nops, convert(b, 'disjcyc')))];

last_term := proc(l) local n: n := nops(l); if(0 = n) then ([]) else (op(n, l)): fi: end:

lmax := proc(a) local e, z; z := 0; for e in a do if whattype(e) = list then e := last_term(e); fi; if e > z then z := e; fi; od; RETURN(z); end;

CROSSREFS

Cycle lengths of permutation A038776 given in A038774. Cf. A057543, A057544, A057545.

LCM's of all cycles: A060113.

Sequence in context: A108653 A123773 A154736 this_sequence A110983 A082000 A100560

Adjacent sequences: A057539 A057540 A057541 this_sequence A057543 A057544 A057545

KEYWORD

nonn,more

AUTHOR

Antti Karttunen Sep 07 2000

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research