login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A277427 Prime permutations, ordered lexicographically. 5
1, 2, 1, 3, 1, 2, 3, 2, 1, 4, 1, 2, 3, 4, 1, 3, 2, 4, 2, 1, 3, 4, 2, 3, 1, 4, 3, 1, 2, 4, 3, 2, 1, 5, 1, 2, 3, 4, 5, 1, 2, 4, 3, 5, 1, 3, 2, 4, 5, 1, 3, 4, 2, 5, 1, 4, 2, 3, 5, 1, 4, 3, 2, 5, 2, 1, 3, 4, 5, 2, 1, 4, 3, 5, 2, 3, 1, 4, 5, 2, 3, 4, 1, 5, 2, 4, 1, 3, 5, 2, 4, 3, 1, 5, 3, 1, 2, 4, 5, 3, 1, 4, 2, 5, 3, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A permutation of {1..n} is prime (in the sense of A215474) iff it is of the form (n, q_1, q_2, ..., q_{n-1}).

Row n in the triangle consists of all permutations consisting of n followed by a permutation of 1..n-1, in lexicographic order.

LINKS

Gus Wiseman, Table of n, a(n) for n = 1..5912

EXAMPLE

The sequence of prime permutations begins:

1,

21,

312, 321,

4123, 4132, 4213, 4231, 4312, 4321,

...

MAPLE

seq(op(map(t -> (n, op(t)), combinat:-permute(n-1))), n=1..6); # Robert Israel, Nov 07 2016

MATHEMATICA

row[n_] := Join[{n}, #]& /@ Permutations[Range[n-1]];

Array[row, 5] // Flatten (* Jean-Fran├žois Alcover, Apr 10 2019 *)

CROSSREFS

Cf. A215474, A254040, A060223, A005117.

Sequence in context: A279782 A132589 A054843 * A231631 A280700 A038566

Adjacent sequences:  A277424 A277425 A277426 * A277428 A277429 A277430

KEYWORD

nonn,tabf

AUTHOR

Gus Wiseman, Oct 14 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 21 02:46 EDT 2020. Contains 337266 sequences. (Running on oeis4.)