OFFSET
1,2
COMMENTS
The sequence A377137 generates infinite cyclic group under composition. The identity element is A000027.
Each column is 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 array consists of two triangular arrays alternating row by row.
For odd n, row n consists of permutations of the integers from A001844((n-1)/2) to A265225(n-1). For even n, row n consists of permutations of the integers from A130883(n/2) to A265225(n-1).
Each column is an intra-block permutation of the positive integers.
LINKS
Boris Putievskiy, Table of n, a(n) for n = 1..9870
Boris Putievskiy, Integer Sequences: Irregular Arrays and Intra-Block Permutations, arXiv:2310.18466 [math.CO], 2023.
FORMULA
EXAMPLE
Table begins:
k = 1 2 3 4 5 6
--------------------------------------
n = 1: 1, 1, 1, 1, 1, 1, ...
n = 2: 4, 3, 2, 4, 3, 2, ...
n = 3: 2, 4, 3, 2, 4, 3, ...
n = 4: 3, 2, 4, 3, 2, 4, ...
n = 5: 6, 5, 6, 5, 6, 5, ...
n = 6: 5, 6, 5, 6, 5, 6, ...
n = 7: 12, 11, 9, 8, 10, 7, ...
n = 8: 10, 7, 12, 11, 9, 8, ...
n = 9: 8, 10, 7, 12, 11, 9, ...
n = 10: 7, 12, 11, 9, 8, 10, ...
n = 11: 9, 8, 10, 7, 12, 11, ...
n = 12: 11, 9, 8, 10, 7, 12, ...
n = 13: 15, 14, 13, 15, 14, 13, ...
n = 14: 13, 15, 14, 13, 15, 14, ...
n = 15: 14, 13, 15, 14, 13, 15, ...
Column k = 1 contains the start of A377137. Ord(T(1,1),T(2,1), ... T(15,1)) = 6, ord(T(1,1),T(2,1), ... T(24,1)) = 18, ord(T(1,1),T(2,1), ... T(45,1)) = 90, ord(T(1,1),T(2,1), ... T(112,1)) = 1260, where ord is order of permutation.
The first 6 antidiagonals are:
1;
4, 1;
2, 3, 1;
3, 4, 2, 1;
6, 2, 3, 4, 1;
5, 5, 4, 2, 3, 1;
MATHEMATICA
a[n_]:=Module[{L, R, P, Result}, L=Ceiling[Max[x/.NSolve[x*(2*(x-1)-Cos[Pi*(x-1)]+5)-4*n==0, x, Reals]]]; R=n-If[EvenQ[L], (L^2-L)/2, (L^2-1)/2]; P[(L+1)*(2*L-(-1)^L+5)/4]=If[EvenQ[L], 3L/2, (L+1)/2]; P[3]=2; P=Abs[2*R-If[EvenQ[L], 3L/2, (L+1)/2]-If[2*R<=If[EvenQ[L], 3L/2, (L+1)/2]+1, 2, 1]]; Res=P+If[EvenQ[L], (L^2-L)/2, (L^2-1)/2]; Result=Res; Result] (*A377137*)
composeSequence[a_, n_, k_]:=Nest[a, n, k]
Nmax=15; Kmax=6; T=Table[composeSequence[a, n, k], {n, 1, Nmax}, {k, 1, Kmax}]
CROSSREFS
KEYWORD
AUTHOR
Boris Putievskiy, Dec 02 2024
STATUS
approved