A280172 Lexicographically earliest table of positive integers read by antidiagonals such that no row or column contains a repeated term.
1, 2, 2, 3, 1, 3, 4, 4, 4, 4, 5, 3, 1, 3, 5, 6, 6, 2, 2, 6, 6, 7, 5, 7, 1, 7, 5, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 7, 5, 7, 1, 7, 5, 7, 9, 10, 10, 6, 6, 2, 2, 6, 6, 10, 10, 11, 9, 11, 5, 3, 1, 3, 5, 11, 9, 11, 12, 12, 12, 12, 4, 4, 4, 4, 12, 12, 12, 12, 13, 11, 9, 11, 13, 3, 1, 3, 13, 11, 9, 11, 13
Offset: 1
Examples
As table (upper anti-triangular matrix) (concat. antidiagonals): 1 2 3 4 5 6 7 8 2 1 4 3 6 5 8 3 4 1 2 7 8 4 3 2 1 8 5 6 7 8 6 5 8 7 8 8 As equilateral triangle (concat. rows): (see formula section) 1 2 2 3 1 3 4 4 4 4 5 3 1 3 5 6 6 2 2 6 6 7 5 7 1 7 5 7 8 8 8 8 8 8 8 8 Lexicographically earliest equilateral triangle of positive integers read by rows such that no diagonal or antidiagonal contains a repeated term.
Links
- Peter Kagey, Table of n, a(n) for n = 1..32896 (first 256 rows, flattened)
- Eric Gottlieb, Matjaž Krnc, and Peter Muršič, Nim on Integer Partitions and Hyperrectangles, arXiv:2506.04991 [math.CO], 2025. See p. 16.
- Peter Kagey, Bitmap of first 2^10 = 1024 rows and columns. (Black pixels correspond to numbers divisible by 3; white pixels to all other numbers.)
- Rémy Sigrist, Scatterplot of (n, a(n)*(a(n)+1)/2) for n = 1..2100225
Crossrefs
Programs
-
Maple
A280172 := (n, k) -> 1 + Bits:-Xor(k-1, n-k): seq(print(seq(A280172(n, k), k=1..n)), n=1..14); # Peter Luschny, Sep 21 2019
Formula
T(n, k) = ( (n-1) XOR (k-1) ) + 1 = A003987(n-1, k-1) + 1. - Rémy Sigrist, Sep 18 2019
a(n) = T(row, n - t(row - 1)), n >= 1, where row = ceiling((-1 + sqrt(1 + 8*n))/2) and t(i) = i*(i+1)/2. - Daniel Forgues, Sep 20 2019
Comments