OFFSET
0,3
COMMENTS
This sequence consists of 0 together with a permutation of the natural numbers. The structure is the same as A081344 but starting with 0, not 1.
It appears that in the n-th layer there is at least a prime number <= g and also there is at least a prime number > g, where g is the number on the main diagonal, the n-th oblong number A002378(n), if n >= 1.
LINKS
FORMULA
a(n) = A081344(n+1) - 1.
T(n,k) = n^2 + k , if n is odd and k<=n.
T(n,k) = n(n + 2) - k, if n is even and k<=n.
T(n,k) = k(k + 2) - n, if n is odd and n<k.
T(n,k) = k^2 + n , if n is even and n<k.
EXAMPLE
The first layer is [1, 2, 3] which looks like this:
. 3,
1, 2,
The second layer is [4, 5, 6, 7, 8] which looks like this:
. . 4
. . 5,
8, 7, 6,
Square array T(0,0)..T(10,10) begins:
0, 3, 4, 15, 16, 35, 36, 63, 64, 99, 100,...
1, 2, 5, 14, 17, 34, 37, 62, 65, 98, 101,...
8, 7, 6, 13, 18, 33, 38, 61, 66, 97, 102,...
9, 10, 11, 12, 19, 32, 39, 60, 67, 96, 103,...
24, 23, 22, 21, 20, 31, 40, 59, 68, 95, 104,...
25, 26, 27, 28, 29, 30, 41, 58, 69, 94, 105,...
48, 47, 46, 45, 44, 43, 42, 57, 70, 93, 106,...
49, 50, 51, 52, 53, 54, 55, 56, 71, 92, 107,...
80, 79, 78, 77, 76, 75, 74, 73, 72, 91, 108,...
81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 109,...
120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110,...
...
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Omar E. Pol, Feb 09 2013
STATUS
approved