Re: orders of permutations
From: Rob Pratt (Rob.Pratt_at_sas.com)
Date: 06/14/04
- Next message: Thomas Richard: "Re: int(exp(x)*erf(x),x = a .. b)"
- Previous message: John Creighton: "Re: recurrsion limit, maple, MATLAB,"
- In reply to: john: "orders of permutations"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Jun 2004 14:59:52 -0400
"john" <blitzjn@hotmail.com> wrote in message news:nkuhhpi3l8td@legacy...
> Hello,
>
> Well, I am a student in a computer math class. My teacher totally
> fell
> behind on schedule and ended up assigning us a programming assignment
> during finals week. Therefore, I cannot consult him for questions.
> Well,
> There are two parts to the problem. I have completed part 1, which is
> creating a program that lists all permutations of 1,2,..,n in such a
> way
> that consecutive permutations differ by a single transposition using
> the
> Johsnon-Trotter algorithm. However, there is a second part to the
> question
> which I think he meant to make trivial but I am not too familiar with
> the
> terms and logic behind his question so I am confused... It states:
>
> "Using the program you wrote, find the largest order that a
> permutation
> of 1,2,3,...,n can have. Run it for as large a value of n as you can
> and
> tabulate the largest possible orders as a function of n."
>
> Any and all feedback/insight/help would be greatly appreciated!
> Thanks!
>
> - John
Landau's function:
http://www.research.att.com/projects/OEIS?Anum=A000793
Rob Pratt
- Next message: Thomas Richard: "Re: int(exp(x)*erf(x),x = a .. b)"
- Previous message: John Creighton: "Re: recurrsion limit, maple, MATLAB,"
- In reply to: john: "orders of permutations"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|