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 11 results. Next

A218611 Positions in A218787 and A218788 of successive distinct values.

Original entry on oeis.org

1, 5, 9, 16, 32, 59, 62, 115, 118, 208, 212, 213, 384, 389, 649, 654, 686, 703, 708, 716, 720, 723, 1310, 1326, 1328, 1338, 2236, 2369, 2422, 2432, 2452, 2458, 2466, 2476, 2486, 2488, 4545, 4601, 4625, 4627, 4637, 7811, 7817, 7819, 7826, 8287, 8511, 8526, 8631
Offset: 1

Views

Author

Antti Karttunen, Nov 11 2012

Keywords

Comments

The terms give the positions to A213730 where for the first time a new, never-before-encountered sidetree ("tendril") appears from the side of the infinite beanstalk. See A179016, A218609 and also A218612.

Crossrefs

A218610 Distinct values of A218788 in the order of appearance.

Original entry on oeis.org

0, 1, 3, 4, 2, 37, 110, 18, 11, 32, 33, 4755, 16127, 73542063, 97105360, 62, 1306632183, 39288694215537689, 193, 8150, 719, 12, 5, 13505, 246941338376004599, 13, 45, 407, 944077158106260984, 4975012595, 5738426278308884, 26, 27439590092251146768825651348524279
Offset: 1

Views

Author

Antti Karttunen, Nov 11 2012

Keywords

Comments

a(n) = A014486-index for the n-th tendril of the infinite beanstalk (A179016), which has not been encountered before, constructed with lesser numbers coming to the right, and larger to the left hand side of each branch.

Crossrefs

These are the mirror-images of binary trees given in A218609, i.e. a(n) = A057163(A218609(n)). A218613 gives the sizes of these trees. Cf. A218611.

Programs

Formula

a(n) = A218788(A218611(n)).

A218787 a(n) = A014486-index for the n-th tendril of infinite beanstalk (A213730(n)), with the "lesser numbers to the left side" construction.

Original entry on oeis.org

0, 0, 0, 0, 1, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 8, 0, 0, 1, 0, 0, 1, 2, 0, 8, 0, 0, 1, 8, 0, 0, 3, 0, 2, 1, 0, 0, 0, 1, 2, 0, 8, 0, 0, 1, 8, 0, 0, 3, 0, 2, 1, 0, 8, 0, 0, 3, 0, 60, 0, 0, 172, 0, 2, 0, 1, 0, 0, 1, 2, 0, 8, 0, 0, 1, 8, 0, 0, 3, 0, 2, 1, 0, 8, 0, 0
Offset: 1

Views

Author

Antti Karttunen, Nov 11 2012

Keywords

Comments

"Tendrils" of the beanstalk are the finite side-trees sprouting from its infinite trunk (see A179016) at the numbers given by A213730.

Examples

			A213730(9)=22, and from that branches 24 and 25 (as both A011371(24)=A011371(25)=22) and while 24 is a leaf (in A055938) the other branch 25 further branches to two leaves (as both A011371(28)=A011371(29)=25).
When we construct a binary tree from this in such a fashion that the lesser numbers go to the left, we obtain:
...........
...28...29.
.....\./...
..24..25...
...\ /.....
....22.....
...........
and the binary tree
........
...\./..
....*...
.\./....
..*.....
........
is located as A014486(2) in the normal encoding order of binary trees, thus a(9)=2.
		

Crossrefs

These are the mirror-images of binary trees given in A218788, i.e. a(n) = A057163(A218788(n)). A218786 gives the sizes of these trees. Cf. A072764, A218609, A218611.

A218778 A014486-codes for the Beanstalk-tree growing one natural number at time, starting from the tree of one internal node (1), with the "lesser numbers to the right side" construction.

Original entry on oeis.org

2, 10, 50, 210, 914, 3666, 14738, 59026, 236690, 946834, 3787922, 15151762, 60607634, 242437266, 969821330, 3879357586, 15518026898, 62072179858, 248289315986, 993157336210, 3972629941394, 15890526653586, 63562180611218, 254248729332882, 1016994991328402
Offset: 1

Views

Author

Antti Karttunen, Nov 17 2012

Keywords

Comments

The active middle region of the triangle (see attached "Wolframesque" illustration) corresponds to the area where the growing tip(s) of the beanstalk are located. Successively larger "turbulences" occurring in that area appear approximately at the row numbers given by A218548. The larger tendrils (the finite side-trees) are, the longer there is vacillation in the direction of the growing region, which lasts until the growing tip of the infinite stem (A179016) has passed the topmost tips of the tendril. See also A218612.
These are the mirror-images (in binary tree sense) of the terms in sequence A218776. For more compact versions, see A218780 & A218782.

Examples

			Illustration how the growing beanstalk-tree produces the first four terms of this sequence. In this variant, the lesser numbers come to the right hand side:
..........
...\1/.... Coded by A014486(A218779(1)) = A014486(1) = 2 (binary 10).
..........
..........
.....\2/..
...\1/.... Coded by A014486(A218779(2)) = A014486(2) = 10 (bin. 1010).
..........
..........
.\3/ \2/..
...\1/.... Coded by A014486(A218779(3)) = A014486(6) = 50 (110010).
..........
..........
..\4/.....
.\3/.\2/..
...\1/.... Coded by A014486(A218779(4)) = A014486(16) = 210 (11010010).
..........
Thus the first four terms of this sequence are 2, 10, 50 and 210.
		

Crossrefs

A218782 A014486-codes for the compact representation of Beanstalk-tree, growing by two natural numbers at time, starting from the tree of one internal node (1) and two leaves (3 and 2), with the larger numbers coming to the left hand side.

Original entry on oeis.org

2, 12, 52, 216, 872, 3496, 14024, 56200, 224904, 899720, 3599496, 14398600, 57599112, 230398088, 921606280, 3686471816, 14745933960, 58983782536, 235935438984, 943742064776, 3774970665096, 15099883493512, 60399541098632, 241598171519112, 966392760309896
Offset: 1

Views

Author

Antti Karttunen, Nov 17 2012

Keywords

Comments

The active middle region of the triangle (see attached "Wolframesque" illustration) corresponds to the area where the growing tip(s) of the beanstalk are located. Successively larger "turbulences" occurring in that area appear approximately at the row numbers given by A218548 divided by two. The larger tendrils, (the finite side-trees) are, the longer there is vacillation in the direction of the growing region, which lasts until the growing tip of the infinite stem (A179016) has passed the topmost tips of the tendril. See also A218612.
These are the mirror-images (in binary tree sense) of the terms in sequence A218780. For less compact versions, see A218778 & A218776.

Examples

			Illustration how the growing beanstalk-tree produces the first four terms of this sequence. In this "compact" variant, each successive pair of numbers ((2,3), (4,5), (6,7), etc.) adds a new bud (\/) to the beanstalk, with the lesser numbers coming to the right hand side:
----------
..3...2...
...\./.... Coded by A014486(A218783(1)) = A014486(1) = 2 (binary 10).
....1.....
----------
5...4.....
.\./......
..3...2...
...\./.... Coded by A014486(A218783(2)) = A014486(3) = 12 (bin. 1100).
....1.....
----------
..7...6...
...\./....
5...4.....
.\./......
..3...2...
...\./.... Coded by A014486(A218783(3)) = A014486(7) = 52 (110100).
....1.....
----------
9...8.....
.\./......
..7...6...
...\./....
5...4.....
.\./......
..3...2...
...\./.... Coded by A014486(A218783(4)) = A014486(18) = 216 (11011000).
....1.....
----------
Thus the first four terms of this sequence are 2, 12, 52 and 216.
		

Crossrefs

A218783 A014486-indices for the compact representation of Beanstalk-tree, with the lesser numbers coming to the right hand side.

Original entry on oeis.org

1, 3, 7, 18, 49, 142, 438, 1405, 4630, 15595, 53493, 186112, 655421, 2331057, 8362451, 30222369, 109930284, 402134685, 1478480102, 5460253675, 20247271086, 75353895375, 281374686795, 1053846512655, 3957966801068, 14902939174394, 56245902561309, 212741751056939
Offset: 1

Views

Author

Antti Karttunen, Nov 17 2012

Keywords

Comments

See the comments and examples at A218782.

Crossrefs

Formula

a(n) = A080300(A218782(n)).

A218786 The sizes of the "tendrils" (finite side-trees sprouting at A213730, A218787) of infinite beanstalk (A179016).

Original entry on oeis.org

0, 0, 0, 0, 1, 0, 0, 1, 2, 0, 0, 0, 1, 2, 0, 3, 0, 0, 1, 0, 0, 1, 2, 0, 3, 0, 0, 1, 3, 0, 0, 2, 0, 2, 1, 0, 0, 0, 1, 2, 0, 3, 0, 0, 1, 3, 0, 0, 2, 0, 2, 1, 0, 3, 0, 0, 2, 0, 5, 0, 0, 6, 0, 2, 0, 1, 0, 0, 1, 2, 0, 3, 0, 0, 1, 3, 0, 0, 2, 0, 2, 1, 0, 3, 0, 0, 2
Offset: 1

Views

Author

Antti Karttunen, Nov 11 2012

Keywords

Examples

			The first four tendrils of the beanstalk sprout at 2, 5, 6 and 9, (the first four nonzero terms of A213730) which are all leaves (i.e., in A055938), thus the first four terms of this sequence are all 0's. The next term A213730(5)=10, which is not leaf, but branches to two leaf-branches (12 and 13, as with both we have: 12-A000120(12)=10 and 13-A000120(13)=10, and both 12 and 13 are found from A055938, so the tendril at 10 is a binary tree of one internal vertex (and two leaves), i.e., \/, thus a(5)=1.
		

Crossrefs

Equally, a(n) = A072643(A218787(n)) = A072643(A218788(n)). Cf. A218613, A218603, A218604.

Programs

Formula

a(n) = A213726(A213730(n))-1.

A218614 a(n) = binary code (shown here in decimal) of the position of natural number n in the beanstalk-tree A218778.

Original entry on oeis.org

1, 2, 3, 5, 7, 9, 13, 21, 29, 37, 53, 69, 101, 85, 117, 181, 245, 309, 437, 565, 821, 693, 949, 1205, 1717, 1461, 1973, 2741, 3765, 2485, 3509, 5557, 7605, 9653, 13749, 17845, 26037, 21941, 30133, 38325, 54709, 46517, 62901, 87477, 120245, 79285, 112053, 144821
Offset: 1

Views

Author

Antti Karttunen, Nov 16 2012

Keywords

Comments

The binary code is the same as used by function general-car-cdr of MIT/GNU Scheme: a zero bit represents a cdr operation (taking the right hand side branch in the binary tree), and a one bit represents a car (taking the left hand side branch in the binary tree). The bits are interpreted from LSB to MSB, and the most significant one bit, rather than being interpreted as an operation, signals the end of the binary code.

Examples

			As we must traverse to 4 in A218778-tree (see the example there) by first taking the left branch (car) from the root, resulting bit 1 as the least significant bit of the code, then by taking the right branch (cdr) from 3 to get to 4, resulting bit 0 as the second rightmost bit of the code, which when capped with an extra termination-one, results binary code 101, 5 in decimal, thus a(4)=5.
		

Crossrefs

a(n) = A054429(A218615(n)). Superset of A218790. Used to construct A218778, A218779. Cf. also A218787, A218788

Formula

a(1)=1; for even n, a(n) = A004754(a(A011371(n))); for odd n, a(n) = A004755(a(A011371(n))).

A218615 a(n) = binary code (shown here in decimal) of the position of natural number n in the beanstalk-tree A218776.

Original entry on oeis.org

1, 3, 2, 6, 4, 14, 10, 26, 18, 58, 42, 122, 90, 106, 74, 202, 138, 458, 330, 970, 714, 842, 586, 1866, 1354, 1610, 1098, 3402, 2378, 3658, 2634, 6730, 4682, 14922, 10826, 31306, 23114, 27210, 19018, 59978, 43594, 51786, 35402, 109130, 76362, 117322, 84554, 248394
Offset: 1

Views

Author

Antti Karttunen, Nov 16 2012

Keywords

Comments

The binary code is the same as used by function general-car-cdr of MIT/GNU Scheme: a zero bit represents a cdr operation (taking the right hand side branch in the binary tree), and a one bit represents a car (taking the left hand side branch in the binary tree). The bits are interpreted from LSB to MSB, and the most significant one bit, rather than being interpreted as an operation, signals the end of the binary code.

Examples

			As we can traverse to 4 in A218776-tree (see the example there) by taking first the right branch (cdr) from the root, resulting bit 0 as the least significant bit of the code, then by taking the left branch (car) from 3 to get to 4, resulting bit 1 as the second rightmost bit of the code, which when capped with an extra termination-one, results binary code 110, 6 in decimal, thus a(4)=6.
		

Crossrefs

a(n) = A054429(A218614(n)). Superset of A218791. Used to construct A218776, A218777. Cf. also A179016, A218787, A218788

Formula

a(1)=1, for odd n, a(n) = A004754(a(A011371(n))), for even n, a(n) = A004755(a(A011371(n))).

A218790 a(n) = binary code (shown here in decimal) of the position of the predecessor of the natural number pair (2n,2n+1) in the compact beanstalk-tree A218782.

Original entry on oeis.org

1, 3, 5, 13, 21, 37, 53, 117, 181, 309, 437, 693, 949, 1717, 1461, 3509, 5557, 9653, 13749, 21941, 30133, 54709, 46517, 79285, 112053, 210357, 177589, 472501, 308661, 734645, 996789, 2045365, 3093941, 5191093, 7288245, 11482549, 15676853, 28259765, 24065461
Offset: 1

Views

Author

Antti Karttunen, Nov 16 2012

Keywords

Crossrefs

Subset of A218614, i.e. a(n) = A218614(A005187(n)).
Also, a(n) = A054429(A218791(n)). Used to construct A218782, A218783. Cf. also A218787, A218788

Formula

a(n) = A218614(A005187(n)).
Showing 1-10 of 11 results. Next