cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A163341 Inverse permutation to A163340.

Original entry on oeis.org

1, 3, 6, 9, 5, 2, 4, 8, 13, 19, 26, 34, 27, 20, 14, 10, 15, 21, 28, 36, 45, 54, 44, 35, 43, 53, 64, 75, 63, 52, 62, 74, 87, 100, 86, 73, 61, 50, 40, 32, 41, 51, 42, 33, 25, 18, 12, 7, 11, 17, 24, 31, 23, 16, 22, 30, 39, 48, 38, 29, 37, 47, 58, 70, 83, 97, 84, 71, 59, 49, 60
Offset: 1

Views

Author

Antti Karttunen, Jul 29 2009

Keywords

Crossrefs

Inverse: A163340.

Formula

a(n) = A163337(n-1) + 1.

A163336 Peano curve in an n X n grid, starting downwards from the top left corner, listed antidiagonally as A(0,0), A(0,1), A(1,0), A(0,2), A(1,1), A(2,0), ...

Original entry on oeis.org

0, 5, 1, 6, 4, 2, 47, 7, 3, 15, 48, 46, 8, 14, 16, 53, 49, 45, 9, 13, 17, 54, 52, 50, 44, 10, 12, 18, 59, 55, 51, 39, 43, 11, 23, 19, 60, 58, 56, 38, 40, 42, 24, 22, 20, 425, 61, 57, 69, 37, 41, 29, 25, 21, 141, 426, 424, 62, 68, 70, 36, 30, 28, 26, 140, 142, 431, 427
Offset: 0

Views

Author

Antti Karttunen, Jul 29 2009

Keywords

Examples

			The top left 9 X 9 corner of the array shows how this surjective self-avoiding walk begins (connect the terms in numerical order, 0-1-2-3-...):
   0  5  6 47 48 53 54 59 60
   1  4  7 46 49 52 55 58 61
   2  3  8 45 50 51 56 57 62
  15 14  9 44 39 38 69 68 63
  16 13 10 43 40 37 70 67 64
  17 12 11 42 41 36 71 66 65
  18 23 24 29 30 35 72 77 78
  19 22 25 28 31 34 73 76 79
  20 21 26 27 32 33 74 75 80
		

Crossrefs

Transpose: A163334. Inverse: A163337. a(n) = A163332(A163330(n)) = A163327(A163333(A163328(n))) = A163334(A061579(n)). One-based version: A163340. Row sums: A163342. Row 0: A163481. Column 0: A163480. Central diagonal: A163343.
See A163357 and A163359 for the Hilbert curve.

Programs

  • Mathematica
    b[{n_, k_}, {m_}] := (A[n, k] = m - 1);
    MapIndexed[b, List @@ PeanoCurve[4][[1]]];
    Table[A[n - k, k], {n, 0, 12}, {k, n, 0, -1}] // Flatten (* Jean-François Alcover, Mar 07 2021 *)

Extensions

Name corrected by Kevin Ryde, Aug 28 2020

A163338 Peano curve in an N x N grid, one-based, starting rightwards from the top-left corner.

Original entry on oeis.org

1, 2, 6, 3, 5, 7, 16, 4, 8, 48, 17, 15, 9, 47, 49, 18, 14, 10, 46, 50, 54, 19, 13, 11, 45, 51, 53, 55, 20, 24, 12, 44, 40, 52, 56, 60, 21, 23, 25, 43, 41, 39, 57, 59, 61, 142, 22, 26, 30, 42, 38, 70, 58, 62, 426, 143, 141, 27, 29, 31, 37, 71, 69, 63, 425, 427, 144, 140
Offset: 1

Views

Author

Antti Karttunen, Jul 29 2009

Keywords

Comments

See the comments at A163334.

Crossrefs

Inverse: A163339. Transpose: A163340.

Formula

a(n) = A163334(n-1)+1

Extensions

Name corrected by Kevin Ryde, Aug 28 2020
Showing 1-3 of 3 results.