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-10 of 83 results. Next

A233275 Permutation of nonnegative integers obtained by entangling complementary pair A005187 & A055938 with even and odd numbers.

Original entry on oeis.org

0, 1, 3, 2, 6, 7, 5, 4, 12, 13, 14, 10, 15, 11, 9, 8, 24, 25, 26, 28, 27, 29, 20, 30, 21, 22, 18, 31, 23, 19, 17, 16, 48, 49, 50, 52, 51, 53, 56, 54, 57, 58, 40, 55, 59, 41, 60, 42, 61, 44, 36, 43, 45, 62, 46, 37, 38, 34, 63, 47, 39, 35, 33, 32, 96, 97, 98, 100
Offset: 0

Views

Author

Antti Karttunen, Dec 18 2013

Keywords

Comments

It seems that for all n, a(A000079(n)) = A003945(n).

Crossrefs

Inverse permutation: A233276.
Similarly constructed permutation pairs: A135141/A227413, A232751/A232752, A233277/A233278, A233279/A233280, A003188/A006068.

Formula

a(0)=0, a(1)=1, and thereafter, if A079559(n)=1, a(n) = 2*a(A213714(n)-1), else a(n) = 1+(2*a(A234017(n))).
a(n) = A054429(A233277(n)). [Follows from the definitions of these sequences]

A234017 Inverse function for injection A055938.

Original entry on oeis.org

0, 0, 1, 0, 0, 2, 3, 0, 0, 4, 0, 0, 5, 6, 7, 0, 0, 8, 0, 0, 9, 10, 0, 0, 11, 0, 0, 12, 13, 14, 15, 0, 0, 16, 0, 0, 17, 18, 0, 0, 19, 0, 0, 20, 21, 22, 0, 0, 23, 0, 0, 24, 25, 0, 0, 26, 0, 0, 27, 28, 29, 30, 31, 0, 0, 32, 0, 0, 33, 34, 0, 0, 35, 0, 0, 36, 37, 38
Offset: 0

Views

Author

Antti Karttunen, Dec 18 2013

Keywords

Comments

a(0)=0; thereafter if n occurs as a term of A055938, a(n)=its position in A055938, otherwise zero. This works as an "inverse" function for A055938 in a sense that a(A055938(n)) = n for all n.
a(n)*A213714(n) = 0 for all n.

Crossrefs

Programs

Formula

a(n) = (1-A079559(n)) * A234016(n).

A233276 a(0)=0, a(1)=1, after which a(2n) = A005187(1+a(n)), a(2n+1) = A055938(a(n)).

Original entry on oeis.org

0, 1, 3, 2, 7, 6, 4, 5, 15, 14, 11, 13, 8, 9, 10, 12, 31, 30, 26, 29, 22, 24, 25, 28, 16, 17, 18, 20, 19, 21, 23, 27, 63, 62, 57, 61, 50, 55, 56, 60, 42, 45, 47, 51, 49, 52, 54, 59, 32, 33, 34, 36, 35, 37, 39, 43, 38, 40, 41, 44, 46, 48, 53, 58, 127, 126, 120
Offset: 0

Views

Author

Antti Karttunen, Dec 18 2013

Keywords

Comments

For all n, a(A000079(n)) = A000225(n+1), i.e. a(2^n) = (2^(n+1))-1.
For n>=1, a(A000225(n)) = A000325(n).
This permutation is obtained by "entangling" even and odd numbers with complementary pair A005187 & A055938, meaning that it can be viewed as a binary tree. Each child to the left is obtained by applying A005187(n+1) to the parent node containing n, and each child to the right is obtained as A055938(n):
0
|
...................1...................
3 2
7......../ \........6 4......../ \........5
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
15 14 11 13 8 9 10 12
31 30 26 29 22 24 25 28 16 17 18 20 19 21 23 27
etc.
For n >= 1, A256991(n) gives the contents of the immediate parent node of the node containing n, while A070939(n) gives the total distance to 0 from the node containing n, with A256478(n) telling how many of the terms encountered on that journey are terms of A005187 (including the penultimate 1 but not the final 0 in the count), while A256479(n) tells how many of them are terms of A055938.
Permutation A233278 gives the mirror image of the same tree.

Crossrefs

Inverse permutation: A233275.
Cf. also A070939 (the binary width of both n and a(n)).
Related arrays: A255555, A255557.
Similarly constructed permutation pairs: A005940/A156552, A135141/A227413, A232751/A232752, A233277/A233278, A233279/A233280, A003188/A006068.

Formula

a(0)=0, a(1)=1, and thereafter, a(2n) = A005187(1+a(n)), a(2n+1) = A055938(a(n)).
As a composition of related permutations:
a(n) = A233278(A054429(n)).

Extensions

Name changed and the illustration of binary tree added by Antti Karttunen, Apr 19 2015

A233277 Permutation of nonnegative integers obtained by entangling complementary pair A005187 & A055938 with odd and even numbers.

Original entry on oeis.org

0, 1, 2, 3, 5, 4, 6, 7, 11, 10, 9, 13, 8, 12, 14, 15, 23, 22, 21, 19, 20, 18, 27, 17, 26, 25, 29, 16, 24, 28, 30, 31, 47, 46, 45, 43, 44, 42, 39, 41, 38, 37, 55, 40, 36, 54, 35, 53, 34, 51, 59, 52, 50, 33, 49, 58, 57, 61, 32, 48, 56, 60, 62, 63, 95, 94, 93, 91
Offset: 0

Views

Author

Antti Karttunen, Dec 18 2013

Keywords

Crossrefs

Inverse permutation: A233278.
Similarly constructed permutation pairs: A135141/A227413, A232751/A232752, A233275/A233276, A233279/A233280, A003188/A006068.

Formula

a(0)=0, a(1)=1, and thereafter, if A079559(n)=0, a(n) = 2*a(A234017(n)), else a(n) = 1+(2*a(A213714(n)-1)).
a(n) = A054429(A233275(n)). [Follows from the definitions of these sequences]

A233278 a(0)=0, a(1)=1, after which a(2n) = A055938(a(n)), a(2n+1) = A005187(1+a(n)).

Original entry on oeis.org

0, 1, 2, 3, 5, 4, 6, 7, 12, 10, 9, 8, 13, 11, 14, 15, 27, 23, 21, 19, 20, 18, 17, 16, 28, 25, 24, 22, 29, 26, 30, 31, 58, 53, 48, 46, 44, 41, 40, 38, 43, 39, 37, 35, 36, 34, 33, 32, 59, 54, 52, 49, 51, 47, 45, 42, 60, 56, 55, 50, 61, 57, 62, 63, 121, 113, 108
Offset: 0

Views

Author

Antti Karttunen, Dec 18 2013

Keywords

Comments

This permutation is obtained by "entangling" even and odd numbers with complementary pair A055938 & A005187, meaning that it can be viewed as a binary tree. Each child to the left is obtained by applying A055938(n) to the parent node containing n, and each child to the right is obtained as A005187(n+1):
0
|
...................1...................
2 3
5......../ \........4 6......../ \........7
/ \ / \ / \ / \
/ \ / \ / \ / \
/ \ / \ / \ / \
12 10 9 8 13 11 14 15
27 23 21 19 20 18 17 16 28 25 24 22 29 26 30 31
etc.
For n >= 1, A256991(n) gives the contents of the immediate parent node of the node containing n, while A070939(n) gives the total distance to zero at the root from the node containing n, with A256478(n) telling how many of the terms encountered on that journey are terms of A005187 (including the penultimate 1 but not the final 0 in the count), while A256479(n) tells how many of them are terms of A055938.
Permutation A233276 gives the mirror image of the same tree.

Crossrefs

Inverse permutation: A233277.
Cf. also A070939 (the binary width of both n and a(n)).
Related arrays: A255555, A255557.
Similarly constructed permutation pairs: A005940/A156552, A135141/A227413, A232751/A232752, A233275/A233276, A233279/A233280, A003188/A006068.

Formula

a(0)=0, a(1)=1, and thereafter, a(2n) = A055938(a(n)), a(2n+1) = A005187(1+a(n)).
As a composition of related permutations:
a(n) = A233276(A054429(n)).

Extensions

Name changed and the illustration of binary tree added by Antti Karttunen, Apr 19 2015

A256997 Square array A(row,col) read by antidiagonals: A(1,col) = A055938(col), and for row > 1, A(row,col) = A005187(A(row-1,col)).

Original entry on oeis.org

2, 5, 3, 6, 8, 4, 9, 10, 15, 7, 12, 16, 18, 26, 11, 13, 22, 31, 34, 49, 19, 14, 23, 41, 57, 66, 95, 35, 17, 25, 42, 79, 110, 130, 184, 67, 20, 32, 47, 81, 153, 215, 258, 364, 131, 21, 38, 63, 89, 159, 302, 424, 514, 723, 259, 24, 39, 73, 120, 174, 312, 599, 844, 1026, 1440, 515, 27, 46, 74, 143, 236, 343, 620, 1192, 1683, 2050, 2876, 1027
Offset: 2

Views

Author

Antti Karttunen, Apr 14 2015

Keywords

Comments

The array is read by antidiagonals: A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), etc.
This is transpose of array A256995.
If we assume that a(1) = 1 (but which is not explicitly included here because outside of the array proper), then A256998 gives the inverse permutation.

Examples

			The top left corner of the array:
    2,    5,    6,    9,   12,   13,   14,   17,   20,   21,    24,    27
    3,    8,   10,   16,   22,   23,   25,   32,   38,   39,    46,    50
    4,   15,   18,   31,   41,   42,   47,   63,   73,   74,    88,    97
    7,   26,   34,   57,   79,   81,   89,  120,  143,  145,   173,   191
   11,   49,   66,  110,  153,  159,  174,  236,  281,  287,   341,   375
   19,   95,  130,  215,  302,  312,  343,  467,  558,  568,   677,   743
   35,  184,  258,  424,  599,  620,  680,  928, 1111, 1132,  1349,  1479
   67,  364,  514,  844, 1192, 1235, 1356, 1852, 2216, 2259,  2693,  2951
  131,  723, 1026, 1683, 2380, 2464, 2707, 3697, 4428, 4512,  5381,  5895
  259, 1440, 2050, 3360, 4755, 4924, 5408, 7387, 8851, 9020, 10757, 11783
  ...
		

Crossrefs

Cf. A005187, A055938 (row 1), A256994 (column 1), A256989 (row index), A256990 (column index).
Inverse: A256998.
Transpose: A256995.
Cf. also A254107, A255557 (variants), A246278 (another thematically similar construction).

Programs

Formula

A(1,col) = A055938(col), and for row > 1, A(row,col) = A005187(A(row-1,col)).

A256992 Position of n in either of the complementary sequences, A005187 or A055938: a(n) = A213714(n) + A234017(n).

Original entry on oeis.org

1, 1, 2, 3, 2, 3, 4, 5, 4, 6, 7, 5, 6, 7, 8, 9, 8, 10, 11, 9, 10, 12, 13, 11, 14, 15, 12, 13, 14, 15, 16, 17, 16, 18, 19, 17, 18, 20, 21, 19, 22, 23, 20, 21, 22, 24, 25, 23, 26, 27, 24, 25, 28, 29, 26, 30, 31, 27, 28, 29, 30, 31, 32, 33, 32, 34, 35, 33, 34, 36, 37, 35, 38, 39, 36, 37, 38, 40, 41, 39, 42, 43, 40, 41, 44, 45, 42
Offset: 1

Views

Author

Antti Karttunen, Apr 15 2015

Keywords

Comments

In other words, if n = A005187(k) for some k >= 1, then a(n) = k, otherwise it must be that n = A055938(h) for some h, and then a(n) = h.
Each n occurs exactly twice, first at a(A005187(n)), then at a(A055938(n)). Cf. also A257126.
When iterating a(n), a(a(n)), a(a(a(n))), etc, A256993(n) gives the number of steps to reach one, from any starting value n >= 1.

Crossrefs

Cf. also A256991 (variant), A256993, A257126.

Programs

Formula

a(n) = A213714(n) + A234017(n).
a(n) = A256991(n) + A079559(n).
If A079559(n) = 1, a(n) = A213714(n), otherwise a(n) = A234017(n).

A254105 Dispersion of A055938; starting from its complementary sequence A005187 as the first column of square array A(row,col), read by antidiagonals A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), ...

Original entry on oeis.org

1, 2, 3, 5, 6, 4, 12, 13, 9, 7, 27, 28, 20, 14, 8, 58, 59, 43, 29, 17, 10, 121, 122, 90, 60, 36, 21, 11, 248, 249, 185, 123, 75, 44, 24, 15, 503, 504, 376, 250, 154, 91, 51, 30, 16, 1014, 1015, 759, 505, 313, 186, 106, 61, 33, 18, 2037, 2038, 1526, 1016, 632, 377, 217, 124, 68, 37, 19, 4084, 4085, 3061, 2039, 1271, 760, 440, 251, 139, 76, 40, 22
Offset: 1

Views

Author

Antti Karttunen, Jan 26 2015

Keywords

Comments

This sequence is one instance of Clark Kimberling's generic dispersion arrays. Paraphrasing his explanation in A191450, mutatis mutandis, we have the following definition:
Suppose that s is an increasing sequence of positive integers, that the complement t of s is infinite, and that t(1)=1. The dispersion of s is the array D whose n-th row is (t(n), s(t(n)), s(s(t(n))), s(s(s(t(n)))), ...). Every positive integer occurs exactly once in D, so that, as a sequence, D is a permutation of the positive integers. The sequence u given by u(n) = {index of the row of D that contains n} is a fractal sequence. In this case s(n) = A055938(n), t(n) = A005187(n) [from term A005187(1) onward] and u(n) = A254112(n).
For other examples of such sequences, see the Crossrefs section. For a general introduction, please follow the Kimberling references.
The main diagonal: 1, 6, 20, 60, 154, 377, 887, 2040, 4598, 10229, 22515, 49139, ...

Examples

			The top left corner of the array:
   1,  2,  5,  12,  27,  58,  121,  248,  503,  1014,  2037,  4084
   3,  6, 13,  28,  59, 122,  249,  504, 1015,  2038,  4085,  8180
   4,  9, 20,  43,  90, 185,  376,  759, 1526,  3061,  6132, 12275
   7, 14, 29,  60, 123, 250,  505, 1016, 2039,  4086,  8181, 16372
   8, 17, 36,  75, 154, 313,  632, 1271, 2550,  5109, 10228, 20467
  10, 21, 44,  91, 186, 377,  760, 1527, 3062,  6133, 12276, 24563
  11, 24, 51, 106, 217, 440,  887, 1782, 3573,  7156, 14323, 28658
  15, 30, 61, 124, 251, 506, 1017, 2040, 4087,  8182, 16373, 32756
  16, 33, 68, 139, 282, 569, 1144, 2295, 4598,  9205, 18420, 36851
  18, 37, 76, 155, 314, 633, 1272, 2551, 5110, 10229, 20468, 40947
etc.
		

Crossrefs

Inverse: A254106.
Transpose: A254107.
Column 1: A005187.
Cf. also A000325, A095768, A123720 (Seem to be rows 1 - 3, the last one from its second term onward.)
Columnd index of n: A254111, Row index: A254112.
Examples of other arrays of dispersions: A114537, A035513, A035506, A191449, A191450, A191426-A191455.

Programs

Formula

If col = 1, then A(row,col) = A005187(row), otherwise A(row,col) = A055938(A(row,col-1)).

A254107 Transposed dispersion of A055938.

Original entry on oeis.org

1, 3, 2, 4, 6, 5, 7, 9, 13, 12, 8, 14, 20, 28, 27, 10, 17, 29, 43, 59, 58, 11, 21, 36, 60, 90, 122, 121, 15, 24, 44, 75, 123, 185, 249, 248, 16, 30, 51, 91, 154, 250, 376, 504, 503, 18, 33, 61, 106, 186, 313, 505, 759, 1015, 1014, 19, 37, 68, 124, 217, 377, 632, 1016, 1526, 2038, 2037, 22, 40, 76, 139, 251, 440, 760, 1271, 2039, 3061, 4085, 4084
Offset: 1

Views

Author

Antti Karttunen, Jan 26 2015

Keywords

Comments

This is dispersion array A254105 transposed. Please see there for a description.

Examples

			The top left corner of the array:
     1,    3,    4,    7,    8,   10,   11,   15,   16,    18,    19,    22
     2,    6,    9,   14,   17,   21,   24,   30,   33,    37,    40,    45
     5,   13,   20,   29,   36,   44,   51,   61,   68,    76,    83,    92
    12,   28,   43,   60,   75,   91,  106,  124,  139,   155,   170,   187
    27,   59,   90,  123,  154,  186,  217,  251,  282,   314,   345,   378
    58,  122,  185,  250,  313,  377,  440,  506,  569,   633,   696,   761
   121,  249,  376,  505,  632,  760,  887, 1017, 1144,  1272,  1399,  1528
   248,  504,  759, 1016, 1271, 1527, 1782, 2040, 2295,  2551,  2806,  3063
   503, 1015, 1526, 2039, 2550, 3062, 3573, 4087, 4598,  5110,  5621,  6134
  1014, 2038, 3061, 4086, 5109, 6133, 7156, 8182, 9205, 10229, 11252, 12277
etc.
		

Crossrefs

Inverse: A254108.
Transpose: A254105.
Row 1: A005187. Column 1: A000325.
Row index: A254111, Column index of n: A254112.

Programs

Formula

If row = 1, then A(row,col) = A005187(col), otherwise A(row,col) = A055938(A(row-1,col)).

A255555 Square array A(row,col) read by downwards antidiagonals: A(1,1) = 1, A(row,1) = A055938(row-1), and for col > 1, A(row,col) = A005187(1+A(row,col-1)).

Original entry on oeis.org

1, 3, 2, 7, 4, 5, 15, 8, 10, 6, 31, 16, 19, 11, 9, 63, 32, 38, 22, 18, 12, 127, 64, 74, 42, 35, 23, 13, 255, 128, 146, 82, 70, 46, 25, 14, 511, 256, 290, 162, 138, 89, 49, 26, 17, 1023, 512, 578, 322, 274, 176, 97, 50, 34, 20, 2047, 1024, 1154, 642, 546, 350, 193, 98, 67, 39, 21, 4095, 2048, 2306, 1282, 1090, 695, 385, 194, 134, 78, 41, 24
Offset: 1

Views

Author

Antti Karttunen, Apr 13 2015

Keywords

Comments

The array is read by antidiagonals: A(1,1), A(1,2), A(2,1), A(1,3), A(2,2), A(3,1), etc.
Provided that I understand Kimberling's terminology correctly, this array is the dispersion of sequence b(n) = A005187(n+1), for n>=1: A005187[2..] = [3, 4, 7, 8, 10, 11, ...]. The left column is the complement of that sequence, which is {1} followed by A055938. - Antti Karttunen, Apr 17 2015

Examples

			The top left corner of the array:
   1,  3,  7,  15,  31,  63,  127,  255,  511, 1023,  2047,  4095
   2,  4,  8,  16,  32,  64,  128,  256,  512, 1024,  2048,  4096
   5, 10, 19,  38,  74, 146,  290,  578, 1154, 2306,  4610,  9218
   6, 11, 22,  42,  82, 162,  322,  642, 1282, 2562,  5122, 10242
   9, 18, 35,  70, 138, 274,  546, 1090, 2178, 4354,  8706, 17410
  12, 23, 46,  89, 176, 350,  695, 1387, 2770, 5535, 11067, 22128
  13, 25, 49,  97, 193, 385,  769, 1537, 3073, 6145, 12289, 24577
  14, 26, 50,  98, 194, 386,  770, 1538, 3074, 6146, 12290, 24578
  17, 34, 67, 134, 266, 530, 1058, 2114, 4226, 8450, 16898, 33794
  20, 39, 78, 153, 304, 606, 1207, 2411, 4818, 9631, 19259, 38512
  ...
		

Crossrefs

Inverse permutation: A255556.
Transpose: A255557.
Row 1: A000225.
Cf. A255559 (column index), A255560 (row index).
Cf. also A254105, A256995 (variants), A233275-A233278.

Programs

Formula

A(1,1) = 1, A(row,1) = A055938(row-1), and for col > 1, A(row,col) = A005187(1+A(row,col-1)).
Showing 1-10 of 83 results. Next