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 21-22 of 22 results.

A383590 a(n) = A378762(A382499(n)).

Original entry on oeis.org

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

Views

Author

Boris Putievskiy, May 01 2025

Keywords

Comments

This sequence can be regarded as a triangular array read by rows. Each row is a permutation of a block of consecutive numbers; the blocks are disjoint and every positive number belongs to some block. The length of row n is 4n-3 = A016813(n-1), n > 0.
The sequence can also be regarded as a table read by upward antidiagonals. For n > 1 row n joins two consecutive antidiagonals.
The sequence is an intra-block permutation of the positive integers.
Generalization of the Cantor numbering method.
A378762, A381968 and A380817 generate via composition a finite non-abelian group of permutations of positive integers, isomorphic to the direct product of the dihedral group D4 and the cyclic group C2. The list of the 16 elements of that group: this sequence, A000027 (the identity permutation), A383419 (the inverse permutation), A381968, A381662, A382499, A380817, A382679, A376214, A382680, A378762, A383589, A056023, A383722, A383723, A383724. For subgroups and the Cayley table of the group D4xC2 see Boris Putievskiy link. - Boris Putievskiy, Jun 02 2025

Examples

			Triangle array begins:
  k=    1   2   3  4   5  6   7  8   9
  n=1:  1;
  n=2:  5,  3,  6, 2,  4;
  n=3: 14, 10, 12, 8, 15, 7, 13, 9, 11;
(1, 5, 3, ..., 9, 11) = (1, 2, 3, ..., 12, 11) (1, 5, 3, ..., 7, 15). The first permutation on the right-hand side is from Example A378762 and the second from Example A382499.
Ord(1, 5, 3, ... , 9, 11) = 4.
For n > 1, each row of triangle array joins two consecutive upward antidiagonals in the table:
   1,  3,  4,  8, 11, ...
   5,  2, 12,  9, 23, ...
   6, 10, 13, 19, 24, ...
  14,  7, 25, 18, 40, ...
  15, 21, 26, 34, 41, ...
  ...
Subtracting (n-1)*(2*n-3) from each term in row n produces a permutation of numbers from 1 to 4*n-3:
  1;
  4, 2, 5, 1, 3;
  8, 4, 6, 2, 9, 1, 7, 3, 5.
		

Crossrefs

Programs

  • Mathematica
    T[n_,k_]:=(n-1)*(2*n-3)+Module[{m=2*n-1},If[k
    				

Formula

ord(a(1), a(2), ..., a(A000384(n+1))) = 4, where ord is the order of the permutation.
T(n,k) for 1 <= k <= 4n - 3: T(n,k) = A000384(n-1) + P(n,k), P(n, k) = 2m - 1 - k if k < m and k == 1 (mod 2), P(n, k) = m + 1 - k if k < m and k == 0 (mod 2), P(n, k) = 3m - 1 - k if k >= m and k == 1 (mod 2), P(n, k) = - m + k if k >= m and k == 0 (mod 2), where m = 2n - 1.

A378200 Square array read by upward antidiagonals: T(n,k) = ((k + n - 1)^2 + (k - n + 1)*(-1)^n + (1 - k - n)*(-1)^k + (1 - k - n)*(-1)^(k + n) + 2)/2.

Original entry on oeis.org

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

Views

Author

Boris Putievskiy, Nov 19 2024

Keywords

Comments

The sequence can be arranged in a triangular array, read by rows (blocks). Each row is a permutation of a block of consecutive numbers; the blocks are disjoint and every positive number belongs to some block. Row n has a length of 4n-3 = A016813(n-1), n > 0. For n > 1, each row is a pair consecutive antidiagonals.
The sequence is an intra-block permutation of the positive integers.
Generalization of Cantor numbering method.
This sequence generates the cyclic group C6 under composition. The elements of C6 are the successive compositions of this sequence with itself: A378684(n) = a(a(n)) = a^2(n), A378762(n) = a^3(n), A379342(n) = a^4(n), A378705(n) = a^5(n). The identity element is A000027(n) = a^6(n). - Boris Putievskiy, Jan 03 2025
A379343 and A378684 generate via composition a finite non-abelian group of permutations of positive integers, isomorphic to the alternating group A4. The list of the 12 elements of that group: this sequence, A379343 (the inverse permutation), A000027 (the identity permutation), A381662, A380817, A376214, A378684, A379342, A380245, A381664, A380815, A381663. For subgroups and the Cayley table of the group A4 see Boris Putievskiy (2025) link. - Boris Putievskiy, Mar 28 2025

Examples

			Table begins:
   1,  2,  4,  7, 11, ...
   5,  3, 14, 10, 27, ...
   6,  9, 13, 18, 24, ...
  12,  8, 25, 19, 42, ...
  15, 20, 26, 33, 41, ...
  ...
The first 5 antidiagonals are:
   1;
   5, 2;
   6, 3,  4;
  12, 9, 14,  7;
  15, 8, 13, 10, 11;
Triangle array begins:
  k=   1   2   3   4   5   6   7   8   9
  n=1: 1;
  n=2: 5,  2,  6,  3,  4;
  n=3: 12, 9, 14,  7,  15, 8, 13, 10, 11;
Subtracting (n-1)*(2*n-3) from each term is row n produces a permutation of numbers from 1 to 4*n-3:
  1;
  4, 1, 5, 2, 3;
  6, 3, 8, 1, 9, 2, 7, 4, 5.
		

Crossrefs

Programs

  • Mathematica
    T[n_, k_] := ((k + n - 1)^2 + (k - n + 1)*(-1)^n + (1 - k - n)*(-1)^k + (1 - k - n)*(-1)^(k + n) + 2)/2;
    Table[T[k, n], {k, 1, 5}, {n, 1, 5}]

Formula

Triangular array T(n,k) for 1 <= k <= 4n - 3 (see Example): T(n,k) = A000384(n-1) + P(n,k), P(n,k) = m + k if k < m and k == 1 (mod 2), P(n,k) = m - k if k < m and k == 0 (mod 2), P(n,k) = 3m - k - 1 if k >= m and k == 1 (mod 2), P(n,k)= - m + k + 1 if k >= m and k == 0 (mod 2), where m = 2n - 1.
G.f.: x*y*(1 + y + y^3 + y^4 - x^3*(2 + y + y^2 - 5*y^3 + y^4) + x*(4 - 3*y + y^2 - y^3 - y^4) - x^2*(1 - 3*y + 9*y^2 + 3*y^3 - 2*y^4) + x^4*(2 + y^2 - 2*y^3 + 3*y^4))/((1 - x)^3*(1 + x)^2*(1 - y)^3*(1 + y)^2). - Stefano Spezia, Jan 12 2025
Previous Showing 21-22 of 22 results.