cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 11-17 of 17 results.

A198380 Cycle type of the n-th finite permutation represented by index number of A194602.

Original entry on oeis.org

0, 1, 1, 2, 2, 1, 1, 3, 2, 4, 4, 2, 2, 4, 1, 2, 3, 4, 4, 2, 2, 1, 4, 3, 1, 3, 3, 5, 5, 3, 2, 5, 4, 6, 6, 4, 4, 6, 2, 4, 5, 6, 6, 4, 4, 2, 6, 5, 2, 5, 4, 6, 6, 4, 1, 3, 2, 4, 4, 2, 3, 5, 4, 6, 6, 5, 5, 3, 6, 4, 5, 6, 4, 6, 2, 4, 5, 6, 2, 4, 1, 2, 3, 4, 4, 6
Offset: 0

Views

Author

Tilman Piesk, Oct 23 2011

Keywords

Comments

This sequence shows the cycle type of each finite permutation (A195663) as the index number of the corresponding partition. (When a permutation has a 3-cycle and a 2-cycle, this corresponds to the partition 3+2, etc.) Partitions can be ordered, so each partition can be denoted by its index in this order, e.g. 6 for the partition 3+2. Compare A194602.
From the properties of A194602 follows:
Entries 1,2,4,6,10,14,21... ( A000041(n)-1 from n=2 ) correspond to permutations with exactly one n-cycle (and no other cycles).
Entries 1,3,7,15,30,56,101... ( A000041(2n-1) from n=1 ) correspond to permutations with exactly n 2-cycles (and no other cycles), so these are the symmetric permutations.
Entries n = 1,3,4,7,9,10,12... ( A194602(n) has an even binary digit sum ) correspond to even permutations. This goes along with the fact, that a permutation is even when its partition contains an even number of even addends.
(Compare "Table for A194602" in section LINKS. Concerning the first two properties see especially the end of this file.)

Crossrefs

Cf. A195663, A195664, A055089 (ordered finite permutations).
Cf. A194602 (ordered partitions interpreted as binary numbers).
Cf. A181897 (number of n-permutations with cycle type k).

Extensions

Changed offset to 0 by Tilman Piesk, Jan 25 2012

A195664 Array read by antidiagonals: Consecutive finite permutations of nonnegative integers in reverse colexicographic order.

Original entry on oeis.org

0, 1, 1, 2, 0, 0, 3, 2, 2, 2, 4, 3, 1, 0, 1, 5, 4, 3, 1, 2, 2, 6, 5, 4, 3, 0, 1, 0, 7, 6, 5, 4, 3, 0, 1, 1, 8, 7, 6, 5, 4, 3, 3, 0, 0, 9, 8, 7, 6, 5, 4, 2, 3, 3, 3, 10, 9, 8, 7, 6, 5, 4, 2, 1, 0, 1, 11, 10, 9, 8, 7, 6, 5, 4, 2, 1, 3, 3, 12, 11, 10, 9, 8, 7, 6, 5, 4, 2, 0, 1, 0, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 2, 0, 2, 2
Offset: 0

Views

Author

Tilman Piesk, Sep 22 2011

Keywords

Comments

Row n is the n-th finite permutation of {0,1,2,3...}.

Examples

			The first 24 permutations of nonnegative integers in rev colex order:
00  -->  0 1 2 3 4 5 6 7 ...
01  -->  1 0 2 3 ...
02  -->  0 2 1 3 ...
03  -->  2 0 1 3 ...
04  -->  1 2 0 3 ...
05  -->  2 1 0 3 ...
06  -->  0 1 3 2 ...
07  -->  1 0 3 2 ...
08  -->  0 3 1 2 ...
09  -->  3 0 1 2 ...
10  -->  1 3 0 2 ...
11  -->  3 1 0 2 ...
12  -->  0 2 3 1 ...
13  -->  2 0 3 1 ...
14  -->  0 3 2 1 ...
15  -->  3 0 2 1 ...
16  -->  2 3 0 1 ...
17  -->  3 2 0 1 ...
18  -->  1 2 3 0 ...
19  -->  2 1 3 0 ...
20  -->  1 3 2 0 ...
21  -->  3 1 2 0 ...
22  -->  2 3 1 0 ...
23  -->  3 2 1 0 ...
		

Crossrefs

Cf. A195663 (same for positive integers, so all entries are bigger by 1).

Formula

a(n) = A195663(n)-1.

A211362 Inversion sets of finite permutations interpreted as binary numbers.

Original entry on oeis.org

0, 1, 4, 3, 6, 7, 32, 33, 20, 11, 22, 15, 48, 41, 52, 43, 30, 31, 56, 57, 60, 59, 62, 63, 512, 513, 516, 515, 518, 519, 288, 289, 148, 75, 150, 79, 304, 297, 180, 107, 158, 95, 312, 313, 188, 123, 190, 127, 768, 769, 644, 579, 646, 583, 800
Offset: 0

Views

Author

Tilman Piesk, Jun 03 2012

Keywords

Comments

Each finite permutation has a finite inversion set. The possible elements of the inversion sets are 2-element subsets of the integers, which can be ordered in an infinite sequence (compare A018900). Thus the inversion set can be represented by a binary vector, which can be interpreted as a binary number.
This sequence shows these numbers for the finite permutations in reverse colexicographic order (A055089, A195663). The corresponding inversion vectors are found in A007623. The corresponding inversion numbers (A034968) are the digit sums of the inversion vectors and the cardinality of the inversion sets, an thus also the binary digit sums of the numbers in this sequence.
This sequence is not monotonic. The permutation A211363 shows how the elements of this sequence (a) are ordered. a*A211363 gives the elements of a ordered by size.

Examples

			The 4th finite permutation (2,3,1,4,...) has the inversion set {(1,3),(2,3)}. This set represented by a vector is (0,1,1,zeros...). This vector interpreted as a number is 6. So a(4)=6.
The 23rd finite permutation (4,3,2,1,...) has the inversion set {(1,2),(1,3),(2,3),(1,4),(2,4),(3,4)}. This set represented by a vector is (1,1,1,1,1,1,zeros...). This vector interpreted as a number is 63. So a(23)=63.
Beginning of corresponding array:
n    permutation   inversion set    a(n)
00     1 2 3 4     0  0 0  0 0 0     0
01     2 1 3 4     1  0 0  0 0 0     1
02     1 3 2 4     0  0 1  0 0 0     4
03     3 1 2 4     1  1 0  0 0 0     3
04     2 3 1 4     0  1 1  0 0 0     6
05     3 2 1 4     1  1 1  0 0 0     7
06     1 2 4 3     0  0 0  0 0 1    32
07     2 1 4 3     1  0 0  0 0 1    33
08     1 4 2 3     0  0 1  0 1 0    20
09     4 1 2 3     1  1 0  1 0 0    11
10     2 4 1 3     0  1 1  0 1 0    22
11     4 2 1 3     1  1 1  1 0 0    15
12     1 3 4 2     0  0 0  0 1 1    48
13     3 1 4 2     1  0 0  1 0 1    41
14     1 4 3 2     0  0 1  0 1 1    52
15     4 1 3 2     1  1 0  1 0 1    43
16     3 4 1 2     0  1 1  1 1 0    30
17     4 3 1 2     1  1 1  1 1 0    31
18     2 3 4 1     0  0 0  1 1 1    56
19     3 2 4 1     1  0 0  1 1 1    57
20     2 4 3 1     0  0 1  1 1 1    60
21     4 2 3 1     1  1 0  1 1 1    59
22     3 4 2 1     0  1 1  1 1 1    62
23     4 3 2 1     1  1 1  1 1 1    63
		

Crossrefs

A237447 Infinite square array: row 1 is the positive integers 1, 2, 3, ..., and on any subsequent row n, n is moved to the front: n, 1, ..., n-1, n+1, n+2, ...

Original entry on oeis.org

1, 2, 2, 3, 1, 3, 4, 3, 1, 4, 5, 4, 2, 1, 5, 6, 5, 4, 2, 1, 6, 7, 6, 5, 3, 2, 1, 7, 8, 7, 6, 5, 3, 2, 1, 8, 9, 8, 7, 6, 4, 3, 2, 1, 9, 10, 9, 8, 7, 6, 4, 3, 2, 1, 10, 11, 10, 9, 8, 7, 5, 4, 3, 2, 1, 11, 12, 11, 10, 9, 8, 7, 5, 4, 3, 2, 1, 12, 13, 12, 11, 10, 9, 8, 6, 5, 4, 3, 2, 1, 13, 14, 13, 12, 11, 10, 9, 8, 6, 5, 4, 3, 2, 1, 14, 15, 14, 13, 12, 11, 10, 9, 7, 6, 5, 4, 3, 2, 1, 15
Offset: 1

Views

Author

Antti Karttunen, Feb 10 2014

Keywords

Comments

Row n is the lexicographically earliest permutation of positive integers beginning with n. This also holds for the reverse colexicographic order, thus A007489(n-1) gives the position of n-th row of this array (which is one-based) in zero-based arrays A195663 & A055089.
The finite n X n square matrices in sequence A237265 converge towards this infinite square array.
Rows can be constructed also simply as follows: The first row is A000027 (natural numbers, also known as positive integers). For the n-th row, n=2, ..., pick n out from the terms of A000027 and move it to the front. This will create a permutation with one cycle of length n, in cycle notation: (1 n n-1 n-2 ... 3 2), which is the inverse of (1 2 ... n-1 n).
There are A000110(n) ways to choose n permutations from the n first rows of this table so that their composition is identity (counting all the different composition orders). This comment is essentially the same as my May 01 2006 comment on A000110, please see there for more information. - Antti Karttunen, Feb 10 2014
Also, for n > 1, the whole symmetric group S_n can be generated with just two rows, row 2, which is transposition (1 2), and row n, which is the inverse of cycle (1 ... n). See Rotman, p. 24, Exercise 2.9 (iii).

Examples

			The top left 9 X 9 corner of this infinite square array:
  1 2 3 4 5 6 7 8 9
  2 1 3 4 5 6 7 8 9
  3 1 2 4 5 6 7 8 9
  4 1 2 3 5 6 7 8 9
  5 1 2 3 4 6 7 8 9
  6 1 2 3 4 5 7 8 9
  7 1 2 3 4 5 6 8 9
  8 1 2 3 4 5 6 7 9
  9 1 2 3 4 5 6 7 8
Note how this is also the 9th finite subsquare of the sequence A237265, which can be picked from its terms A237265(205) .. A237265(285), where 205 = 1+A000330(9-1), the starting offset for that 9th subsquare in A237265.
		

References

  • Joseph J. Rotman, An Introduction to the Theory of Groups, 4th ed., Springer-Verlag, New York, 1995. First chapter, pp. 1-19 [For a general introduction], and from chapter 2, problem 2.9, p. 24.

Crossrefs

Transpose: A237448.
Topmost row and the leftmost column: A000027. Second column: A054977. Central diagonal: A028310 (note the different starting offsets).
Antidiagonal sums: A074148.
This array is the infinite limit of the n X n square matrices in A237265.

Programs

  • Maple
    T:= proc(r,c) if c > r then c elif c=1 then r else c-1 fi end proc:
    seq(seq(T(r,n-r),r=1..n-1),n=1..20); # Robert Israel, May 09 2017
  • Mathematica
    Table[Function[n, If[k == 1, n, k - Boole[k <= n]]][m - k + 1], {m, 15}, {k, m, 1, -1}] // Flatten (* Michael De Vlieger, May 09 2017 *)
  • PARI
    A237447(n,k=0)=if(k, if(k>1, k-(k<=n), n), A237447(A002260(n), A004736(n))) \\ Yields the element [n,k] of the matrix, or the n-th term of the "linearized" sequence if no k is given. - M. F. Hasler, Mar 09 2014
  • Scheme
    (define (A237447 n) (+ (* (A010054 n) (A002024 n)) (* (- 1 (A010054 n)) (- (A004736 n) (if (>= (A002260 n) (A004736 n)) 1 0)))))
    ;; Another variant based on Cano's A237265.
    (define (A237447 n) (let* ((row (A002260 n)) (col (A004736 n)) (sss (max row col)) (sof (+ 1 (A000330 (- sss 1))))) (A237265 (+ sof (* sss (- row 1)) (- col 1)))))
    

Formula

When col > row, T(row,col) = col, when 1 < col <= row, T(row,col) = col-1, and when col=1, T(row,1) = row.
a(n) = A010054(n) * A002024(n) + (1-A010054(n)) * (A004736(n) - [A002260(n) >= A004736(n)]). [This gives the formula for this entry represented as a one-dimensional sequence. Here the expression inside Iverson brackets results 1 only when the row index (A002260) is greater than or equal to the column index (A004736), otherwise zero. A010054 is the characteristic function for the triangular numbers, A000217.]
T(row,col) = A237265((A000330(max(row,col)-1)+1) + (max(row,col)*(row-1)) + (col-1)). [Takes the infinite limit of n X n matrices of A237265.]
G.f. as array: g(x,y) = (1 - 4*x*y + 3*x*y^2 + x^2*y - x*y^3)*x*y/((1-x*y)*(1-x)^2*(1-y)^2). - Robert Israel, May 09 2017

A261098 Row 1 of A261096.

Original entry on oeis.org

1, 0, 4, 5, 2, 3, 7, 6, 10, 11, 8, 9, 18, 19, 20, 21, 22, 23, 12, 13, 14, 15, 16, 17, 25, 24, 28, 29, 26, 27, 31, 30, 34, 35, 32, 33, 42, 43, 44, 45, 46, 47, 36, 37, 38, 39, 40, 41, 49, 48, 52, 53, 50, 51, 55, 54, 58, 59, 56, 57, 66, 67, 68, 69, 70, 71, 60, 61, 62, 63, 64, 65, 96, 97, 98, 99, 100, 101
Offset: 0

Views

Author

Antti Karttunen, Aug 26 2015

Keywords

Comments

Equally, column 1 of A261097.
Take the n-th (n>=0) permutation from the list A055089 (A195663), change 1 to 2 and 2 to 1 to get another permutation, and note its rank in the same list to obtain a(n).
Self-inverse permutation of nonnegative integers.

Examples

			In A195663 the permutation with rank 12 is [1,3,4,2], and swapping the elements 1 and 2 we get permutation [2,3,4,1], which is listed in A195663 as the permutation with rank 18, thus a(12) = 18.
		

Crossrefs

Row 1 of A261096, column 1 of A261097.
Cf. also A004442.
Related permutations: A060119, A060126, A261218.

Formula

a(n) = A261096(1,n).
By conjugating related permutations:
a(n) = A060119(A261218(A060126(n))).

A290097 Restricted growth sequence transform of A290096, related to cycle-structure of permutations listed in table A055089.

Original entry on oeis.org

1, 2, 3, 4, 4, 3, 5, 6, 7, 8, 8, 7, 7, 8, 5, 7, 6, 8, 8, 7, 7, 5, 8, 6, 9, 10, 10, 11, 11, 10, 12, 11, 13, 14, 14, 13, 13, 14, 12, 13, 11, 14, 14, 13, 13, 12, 14, 11, 12, 11, 13, 14, 14, 13, 9, 10, 12, 13, 13, 12, 10, 11, 13, 14, 14, 11, 11, 10, 14, 13, 11, 14, 13, 14, 12, 13, 11, 14, 12, 13, 9, 12, 10, 13, 13, 14, 10, 11, 11, 14, 14, 11, 11, 14, 10, 13, 14
Offset: 0

Views

Author

Antti Karttunen, Aug 17 2017

Keywords

Crossrefs

Cf. tables A055089, A195663.

A211364 Inversion sets of finite permutations that have only 0's and 1's in their inversion vectors.

Original entry on oeis.org

0, 1, 4, 3, 32, 33, 20, 11, 512, 513, 516, 515, 288, 289, 148, 75, 16384, 16385, 16388, 16387, 16416, 16417, 16404, 16395, 8704, 8705, 8708, 8707, 4384, 4385, 2196, 1099, 1048576, 1048577, 1048580, 1048579, 1048608, 1048609, 1048596
Offset: 0

Views

Author

Tilman Piesk, Jun 03 2012

Keywords

Comments

The finite permutations whose position in reverse colexicographic order is A059590(n) (compare A055089, A195663) have the special feature that their inversion vectors (compare A007623) have only zeros and ones, and give 2*n when interpreted as binary numbers. As the inversion vectors are special, one may also take a look at the inversion sets. This sequence shows them, interpreted as binary numbers (compare A211362).

Examples

			These are the 8 permutations of 4 elements that have only 0's and 1's in their inversion vectors. The left column shows their numbers (compare A055089, A195663), i.e., the beginning of A059590. The right column shows the inversion sets interpreted as binary numbers, i.e., the beginning of this sequence.
No.  permutation  inv. vector  inversion set     a
00     1 2 3 4     0 0 0 0     0  0 0  0 0 0     0
01     2 1 3 4     0 1 0 0     1  0 0  0 0 0     1
02     1 3 2 4     0 0 1 0     0  0 1  0 0 0     4
03     3 1 2 4     0 1 1 0     1  1 0  0 0 0     3
06     1 2 4 3     0 0 0 1     0  0 0  0 0 1    32
07     2 1 4 3     0 1 0 1     1  0 0  0 0 1    33
08     1 4 2 3     0 0 1 1     0  0 1  0 1 0    20
09     4 1 2 3     0 1 1 1     1  1 0  1 0 0    11
		

Crossrefs

Formula

a(n) = A211362(A059590(n)).
Previous Showing 11-17 of 17 results.