OFFSET
0,2
COMMENTS
A permutation of the natural numbers.
FORMULA
T(0, k) = (k+1)*(k+2)/2 for k>=0, T(n, 0) = floor((n+1)^2/2) for n>0, T(n, k+1) = (2*floor((n+1)/2) + k+1)^2 - T(n, k) for n>0 and k>=0.
EXAMPLE
Table begins:
1 3 6 10 15 21 28 36 45 55 66 ...
2 7 9 16 20 29 35 46 54 67 77 ...
4 5 11 14 22 27 37 44 56 65 79 ...
8 17 19 30 34 47 53 68 76 93 103 ...
12 13 23 26 38 43 57 64 80 89 107 ...
18 31 33 48 52 69 75 94 102 123 133 ...
24 25 39 42 58 63 81 88 108 117 139 ...
32 49 51 70 74 95 101 124 132 157 167 ...
40 41 59 62 82 87 109 116 140 149 175 ...
50 71 73 96 100 125 131 158 166 195 205 ...
60 61 83 86 110 115 141 148 176 185 215 ...
72 97 99 126 130 159 165 196 204 237 247 ...
CROSSREFS
KEYWORD
AUTHOR
Paul D. Hanna, Apr 27 2003
STATUS
approved