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.

A307403 Base-5 based twisted permutation of the nonnegative integers - variant "Hs".

Original entry on oeis.org

0, 1, 2, 3, 4, 9, 14, 19, 18, 13, 8, 7, 12, 17, 16, 11, 6, 5, 10, 15, 20, 21, 22, 23, 24, 49, 74, 99, 98, 73, 48, 47, 72, 97, 96, 71, 46, 45, 70, 95, 90, 65, 40, 35, 60, 85, 80, 55, 30, 31, 56, 81, 86, 61, 36, 41, 66, 91, 92, 67, 42, 37, 62
Offset: 0

Views

Author

Georg Fischer, Apr 07 2019

Keywords

Comments

Base-5 variant of Knuth's A220952. The definition of the sequence by an adjacency diagram is the same as in A220952, except that the diagram for the sequence here is:
.
(0,4)--(1,4)--(2,4)--(3,4) (4,4)
| | |
| | |
(0,3) (1,3)--(2,3)--(3,3) (4,3)
| | |
| | |
(0,2) (1,2)--(2,2)--(3,2) (4,2)
| | |
| | |
(0,1) (1,1)--(2,1)--(3,1) (4,1)
| | |
| | |
(0,0) (1,0)--(2,0)--(3,0)--(4,0)
.
Conjecture: As in A220952, it can be proved (a) that every positive integer is adjacent to exactly two nonnegative integers, and (b) that with this definition of adjacency, the nonnegative integers form a path starting with 0.
The adjacency definition implies that the terms, when written with 3 base-5 digits, define the coordinates of a self-avoiding, space-filling path in a 5 X 5 X 5 cube. All 3 orthogonal projections to the plane are congruent to the diagram above. This property is maintained in the 4th, 5th ... dimension.
The variants of such adjacency diagrams may be distinguished by letter codes, in this case "Hs" with "H" for the vertical bars (0,0..4), (4,0..4), and "s" for the inner structure (1..3,1..3). Knuth's A220952 would then be denoted by "Hn".

Examples

			In base-5, the terms for the path in two dimensions are 0, 1, 2, 3, 4, 14, 24, 34, 33, 23, 13, 12, 22, 32, 31, 21, 11, 10, 20, 30, 40, 41, 42, 43, 44.
		

Crossrefs

Cf. A220952, (main entry, "Hn"), A307404 ("Ln"), A307405 ("Ls"), A307406 (number of variants per odd base).

Programs

  • Perl
    cf. link.

A307404 Base-5 based twisted permutation of the nonnegative integers - variant "Ln".

Original entry on oeis.org

0, 1, 2, 3, 4, 9, 8, 7, 6, 5, 10, 15, 20, 21, 16, 11, 12, 13, 14, 19, 18, 17, 22, 23, 24, 49, 48, 47, 42, 43, 44, 39, 38, 37, 36, 41, 46, 45, 40, 35, 30, 31, 32, 33, 34, 29, 28, 27, 26, 25, 50, 75, 100, 101, 76, 51, 52, 53, 54, 79, 78, 77, 102
Offset: 0

Views

Author

Georg Fischer, Apr 07 2019

Keywords

Comments

Base-5 variant of Knuth's A220952. The definition of the sequence by an adjacency diagram is the same as in A220952, except that the diagram for the sequence here is:
.
(0,4)--(1,4) (2,4)--(3,4) (4,4)
| | | | |
| | | | |
(0,3) (1,3) (2,3) (3,3) (4,3)
| | | | |
| | | | |
(0,2) (1,2) (2,2) (3,2)--(4,2)
| | |
| | |
(0,1) (1,1) (2,1)--(3,1)--(4,1)
| | |
| | |
(0,0) (1,0)--(2,0)--(3,0)--(4,0)
.
Conjecture: As in A220952, it can be proved (a) that every positive integer is adjacent to exactly two nonnegative integers, and (b) that with this definition of adjacency, the nonnegative integers form a path starting with 0.
The adjacency definition implies that the terms, when written with 3 base-5 digits, define the coordinates of a self-avoiding, space-filling path in a 5 X 5 X 5 cube. All 3 orthogonal projections to the plane are congruent to the diagram above. This property is maintained in the 4th, 5th ... dimension.
The variants of such adjacency diagrams may be distinguished by letter codes, in this case "Ln" with "L" for the path (0,0)...(2,1), and "n" for the path in the upper right corner which has the same shape as the inner structure (1,1)...(3,3) of Knuth's A220952.

Examples

			In base-5, the terms for the path in two dimensions are 0, 1, 2, 3, 4, 14, 13, 12, 11, 10, 20, 30, 40, 41, 31, 21, 22, 23, 24, 34, 33, 32, 42, 43, 44.
		

Crossrefs

Cf. A220952 (main entry, "Hn"), A307403 ("Hs"), A307405 ("Ls"), A307406 (number of variants per odd base).

A307406 Number of twisted permutations of the nonnegative integers in base 2*n+1 with an adjacency diagram as defined by Knuth in A220952.

Original entry on oeis.org

1, 1, 5, 47
Offset: 0

Views

Author

Georg Fischer, Apr 07 2019

Keywords

Comments

The concept of the adjacency diagram in A220952 is not limited to base 5, but can be investigated for all odd bases. In "base 1", the path consists of a single node (1,1). For base 3, there is the ternary Gray code A128173 only. A corresponding simple up-down pattern with a path (0,0), ... (0,n), (1,n), ... (1,0), (2,0), ... (n,n) can be constructed for any odd base.
Conjecture: a(4) = 673.

Crossrefs

Cf. A128173 (base 3, "n"), A220952 (Knuth, base 5, "Hn"), A307403 ("Hs"), A307404 ("Ln"), A307405 ("Ls"), A300857 (base 7).

Programs

  • Perl
    cf. link
Showing 1-3 of 3 results.