OFFSET
1,2
COMMENTS
The 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 Cantor numbering method.
LINKS
Boris Putievskiy, Table of n, a(n) for n = 1..9730
Boris Putievskiy, Integer Sequences: Irregular Arrays and Intra-Block Permutations, arXiv:2310.18466 [math.CO], 2023.
FORMULA
Linear sequence: (a(1),a(2), ... a(A000384(n+1)) is a permutation of the positive integers from 1 to A000384(n+1). ord((a(1),a(2), ... a(A000384(n+1)) = 3, where ord is the order of the permutation.
Triangular array T(n,k) for 1 <= k <= 4n - 3 (see Example): T(n,k) = A000384(n-1) + P(n,k), P(n,k) = k + 1, if k < m(n) and k mod 2 = 1, P(n,k) = k + m(n) - 1, if k < m(n) and k mod 2 = 0, P(n,k) = k, if k => m(n) and k mod 2 = 1, P(n,k) = k - m(n), if k => m(n) and k mod 2 = 0, where m(n) = 2n-1.
G.f.: x*y*(1 + x^8*y^4 + x*(2 + y) + x^7*y^3*(9 + 8*y) - x^3*y*(8 + 8*y - 3*y^2) - x^2*(1 - 8*y - 9*y^2) + x^6*(y^2 - 4*y^3 - 5*y^4) + x^5*(3*y - 8*y^3 - 2*y^4) + 2*x^4*(1 - 2*y - 5*y^2 + y^4))/((1 - x)^3*(1 + x)^2*(1 - x*y)^3*(1 + x*y)^2). - Stefano Spezia, Dec 21 2024
EXAMPLE
Square array begins:
1, 5, 6, 14, 15, ...
3, 2, 10, 9, 21, ...
4, 12, 13, 25, 26, ...
8, 7, 19, 18, 34, ...
11, 23, 24, 40, 41, ...
...
The first 5 antidiagonals are:
1;
3, 5;
4, 2, 6;
8, 12, 10, 14;
11, 7, 13, 9, 15;
Triangle array begins:
k= 1 2 3 4 5 6 7 8 9
n=1: 1;
n=2: 3, 5, 4, 2, 6;
n=3: 8, 12, 10, 14, 11, 7, 13, 9, 15;
For n > 1, each row of triangle array joins two consecutive upward antidiagonals in the table.
ord(1,3,5... 9,15) = 3.
Subtracting (n-1)*(2*n-3) from each term is row n produces a permutation of numbers from 1 to 4*n-3:
1;
2, 4, 3, 1, 5;
2, 6, 4, 8, 5, 1, 7, 3, 9;
MATHEMATICA
T[n_, k_]:=(2*(k+n-1)^2+2k-2n+3+(-2k-2n+3)*(-1)^n-(-1)^k+(-2k-2n+1)*(-1)^(k+n))/4; Table[T[k, n], {k, 1, 5}, {n, 1, 5}]
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Boris Putievskiy, Dec 21 2024
STATUS
approved