OFFSET
0,3
COMMENTS
Similar to A274528, but the triangle here is a right triangle.
The same rule applied to an equilateral triangle gives A274528.
By analogy, the offset for both rows and columns is the same as the offset of A274528.
We construct the triangle by reading from left to right in each row, starting with T(0,0) = 0.
Presumably every diagonal and every column is also a permutation of the nonnegative integers, but the proof does not seem so straightforward. Of course neither the rows nor the antidiagonals are permutations of the nonnegative integers, since they are finite in length.
Omar E. Pol's conjecture that every column and every diagonal of the triangle is a permutation of the nonnegative integers is true: see the link. - N. J. A. Sloane, Jun 07 2017
It appears that the numbers generally appear for the first time in or near the right border of the triangle.
Theorem 1: the middle diagonal gives A000004 (the zero sequence).
Proof: T(0,0) = 0 by definition. For the next rows we have that in row 1 there are no zeros because the first term belongs to a column that contains a zero and the second term belongs to a diagonal that contains a zero. In row 2 the unique zero is T(2,1) = 0 because the preceding term belongs to a column that contains a zero and the following term belongs to a diagonal that contains a zero. Then we have two recurrences for all rows of the triangle:
a) If T(n,k) = 0 then row n+1 does not contain a zero because every term belongs to a column that contains a zero or it belongs to a diagonal that contains a zero.
b) If T(n,k) = 0 the next zero is T(n+2,k+1) because every preceding term in row n+2 is a positive integer because it belongs to a column that contains a zero and, on the other hand, the column, the diagonal and the antidiagonal of T(n+2,k+1) do not contain zeros.
Finally, since both T(n,k) = 0 and T(n+2,k+1) = 0 are located in the middle diagonal, the other terms of the middle diagonal are zeros, or in other words: the middle diagonal gives A000004 (the zero sequence). QED
Theorem 2: all zeros are in the middle diagonal.
Proof: consider the first n rows of the triangle. Every element located above or at the right-hand side of the middle diagonal must be positive because it belongs to a diagonal that contains one of the zeros of the middle diagonal. On the other hand every element located below the middle diagonal must be positive because it belongs to a column that contains one of the zeros of the middle diagonal, hence there are no zeros outside of the middle diagonal, or in other words: all zeros are in the middle diagonal. QED
From Hartmut F. W. Hoft, Jun 12 2017: (Start)
T(2k,k) = 0, for all k >= 0, and T(n,{(n-1)/2,(n+2)/2,(n-2)/2,(n+1)/2}) = 1, for all n >= 0 with n mod 8 = {1,2,4,5} respectively, and no 0's or 1's occur in other positions. The triangle of positions of 0's and 1's for this sequence is the triangle in the Comment section of A274651 with row and column indices and values shifted down by one.
The sequence of rows containing 1's is A047613 (n mod 8 = {1,2,4,5}), those containing only 1's is A016813 (n mod 8 = {1,5}), those containing both 0's and 1's is A047463 (n mod 8 = {2,4}), those containing only 0's is A047451 (n mod 8 = {0,6}), and those containing neither 0's nor 2's is A004767 (n mod 8 = {3,7}).
(End)
LINKS
Alois P. Heinz, Rows n = 0..200, flattened
F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), #P1.52.
Rémy Sigrist, Colored representation of the rows n = 0..999
Rémy Sigrist, PARI program for A274650
N. J. A. Sloane, Notes on A274650 and Proof by Non-Attacking Queens
FORMULA
T(n,k) = A274651(n+1,k+1) - 1.
EXAMPLE
Triangle begins:
0;
1, 2;
3, 0, 1;
2, 4, 3, 5;
5, 1, 0, 2, 3;
4, 3, 5, 1, 6, 7;
6, 7, 2, 0, 5, 4, 8;
8, 5, 9, 4, 7, 2, 10, 6;
7, 10, 8, 3, 0, 6, 9, 5, 4;
11, 6, 12, 7, 1, 8, 3, 10, 9, 13;
9, 8, 4, 11, 2, 0, 1, 12, 6, 7, 10;
10, 11, 7, 12, 4, 3, 2, 9, 8, 14, 13, 15;
12, 9, 10, 6, 8, 1, 0, 11, 7, 4, 16, 14, 17;
...
From Omar E. Pol, Jun 07 2017: (Start)
The triangle may be reformatted as an isosceles triangle so that the zero sequence (A000004) appears in the central column (but note that this is NOT the way the triangle is constructed!):
.
. 0;
. 1, 2;
. 3, 0, 1;
. 2, 4, 3, 5;
. 5, 1, 0, 2, 3;
. 4, 3, 5, 1, 6, 7;
. 6, 7, 2, 0, 5, 4, 8;
. 8, 5, 9, 4, 7, 2, 10, 6;
. 7, 10, 8, 3, 0, 6, 9, 5, 4;
...
(End)
MATHEMATICA
(* function a274651[] is defined in A274651 *)
(* computation of rows 0 ... n-1 *)
a274650[n_] := a274651[n]-1
Flatten[a274650[13]] (* data *)
TableForm[a274650[13]] (* triangle *)
(* Hartmut F. W. Hoft, Jun 12 2017 *)
PROG
(PARI) See Links section.
CROSSREFS
Cf. A000004 (middle diagonal).
Cf. A046092 (indices of the zeros).
Every diagonal and every column of the right triangle is a permutation of A001477.
Cf. A274651 is the same triangle but with 1 added to every entry.
Other sequences of the same family are A269526, A274528, A274820, A274821, A286297, A288530, A288531.
Cf. A288384.
AUTHOR
Omar E. Pol, Jul 02 2016
STATUS
approved