The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A246696 Triangle t(n,k) = t(n,k-2) + 2 if n > 1 and 2 <= k <= n; t(0,0) = 1, t(1,0) = 2, t(1,1) = 3; if n > 1 is odd, then t(n,0) = t(n-1,n-2) + 2 and t(n,1) = t(n-1,n-1) + 2; if n > 1 is even, then t(n,0) = t(n-1,n-1) + 2 and t(n,1) = t(n-1,n-2) + 2. 4
 1, 2, 3, 5, 4, 7, 6, 9, 8, 11, 13, 10, 15, 12, 17, 14, 19, 16, 21, 18, 23, 25, 20, 27, 22, 29, 24, 31, 26, 33, 28, 35, 30, 37, 32, 39, 41, 34, 43, 36, 45, 38, 47, 40, 49, 42, 51, 44, 53, 46, 55, 48, 57, 50, 59, 61, 52, 63, 54, 65, 56, 67, 58, 69, 60, 71, 62 (list; table; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS As an array, for each m, row 2*m has m even numbers and [(m+1)/2] odd numbers, and row 2*m-1 has m odds and m evens. Every positive number occurs exactly once, so that as a sequence (with offset 1), this is a permutation of the positive integers, with inverse A246698. LINKS Table of n, a(n) for n=0..66. EXAMPLE First 8 rows: 1 2 ... 3 5 ... 4 ... 7 6 ... 9 ... 8 ... 11 13 .. 10 .. 15 .. 12 .. 17 14 .. 19 .. 16 .. 21 .. 18 ... 23 25 .. 20 .. 27 .. 22 .. 29 .. 24 .. 31 26 .. 33 .. 28 .. 35 .. 30 .. 37 .. 32 .. 39 MATHEMATICA z = 25; t[0, 0] = 1; t[1, 0] = 2; t[1, 1] = 3; t[n_, 0] := t[n, 0] = If[OddQ[n], t[n - 1, n - 2] + 2, t[n - 1, n - 1] + 2]; t[n_, 1] := t[n, 1] = If[OddQ[n], t[n - 1, n - 1] + 2, t[n - 1, n - 2] + 2]; t[n_, k_] := t[n, k] = t[n, k - 2] + 2; u = Flatten[Table[t[n, k], {n, 0, z}, {k, 0, n}]] (* A246696 *) CROSSREFS Cf. A246697 (row sums), A246698 (inverse permutation), A246694. Sequence in context: A333404 A227082 A227142 * A246698 A246681 A123883 Adjacent sequences: A246693 A246694 A246695 * A246697 A246698 A246699 KEYWORD nonn,easy,tabl AUTHOR Clark Kimberling, Sep 17 2014 EXTENSIONS Edited by M. F. Hasler, Nov 17 2014 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified March 3 21:06 EST 2024. Contains 370517 sequences. (Running on oeis4.)