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-9 of 9 results.

A218548 Positions of records in A213726.

Original entry on oeis.org

0, 2, 10, 22, 47, 208, 224, 974, 1934, 1972, 3765, 3893, 8058, 15738, 16122, 65080, 129592, 130104
Offset: 1

Views

Author

Antti Karttunen, Nov 04 2012

Keywords

Examples

			See explanation at A218549.
		

Crossrefs

Cf. A213726, A218549, A218550. All terms are found from A213730.

A218549 Record values in A213726.

Original entry on oeis.org

0, 1, 2, 3, 4, 6, 7, 10, 11, 18, 20, 33, 34, 35, 63, 144, 170, 241
Offset: 1

Views

Author

Antti Karttunen, Nov 04 2012

Keywords

Examples

			A218548(7)=224, A213726(224)=7 thus a(7)=7 as there are the following seven leaves of beanstalk (i.e. terms of A055938): 233, 234, 235, 238, 245, 250 and 251 that will pass through 224, when an iterative process of x-A000120(x) (see A071542) is applied to them several times.
		

Crossrefs

Cf. A218550.

Programs

Formula

a(n) = A213726(A218548(n)).

A213725 a(n)=0 if n is in the infinite trunk of Carl White's beanstalk (i.e., in A179016), otherwise 1 + number of steps to reach the farthest leaf in that finite branch of the beanstalk.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 2, 0, 1, 1, 1, 0, 0, 1, 2, 0, 1, 1, 3, 0, 1, 2, 0, 1, 1, 1, 1, 0, 0, 1, 2, 0, 1, 1, 3, 0, 1, 2, 0, 1, 1, 1, 0, 4, 1, 0, 3, 1, 1, 0, 2, 1, 2, 0, 1, 1, 1, 1, 1, 0, 0, 1, 2, 0, 1, 1, 3, 0, 1, 2, 0, 1, 1, 1, 0, 4, 1, 0, 3, 1, 1, 0, 2
Offset: 0

Views

Author

Antti Karttunen, Nov 01 2012

Keywords

Crossrefs

Differs from A213726 for the first time at n=208, where a(n)=5, while A213726(208)=6.
For all n, a(A179016(n)) = 0, a(A055938(n)) = 1, and a(A213717(n)) >= 2. Cf. A213726, A213727-A213731.

Formula

If A079559(n)=0, a(n)=1; otherwise, if A213719(n)=1, a(n)=0; otherwise a(n) = 1+max(a(A213723(n)), a(A213724(n))),

A213727 a(n) = 0 if n is in the infinite trunk of the "binary beanstalk", otherwise number of nodes (including leaves and the node n itself) in that finite branch of the beanstalk.

Original entry on oeis.org

0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 3, 0, 1, 1, 1, 0, 0, 1, 3, 0, 1, 1, 5, 0, 1, 3, 0, 1, 1, 1, 1, 0, 0, 1, 3, 0, 1, 1, 5, 0, 1, 3, 0, 1, 1, 1, 0, 7, 1, 0, 5, 1, 1, 0, 3, 1, 3, 0, 1, 1, 1, 1, 1, 0, 0, 1, 3, 0, 1, 1, 5, 0, 1, 3, 0, 1, 1, 1, 0, 7, 1, 0, 5, 1, 1, 0, 3
Offset: 0

Views

Author

Antti Karttunen, Nov 01 2012

Keywords

Comments

a(n) tells, for each natural number n, whether it belongs to the infinite trunk of the binary beanstalk (in A179016, when a(n)=0), or if it is one of the terminal nodes (i.e., leaves, A055938, when a(n)=1), or otherwise, when a(n) > 1, tells from how many different numbers one can arrive at this n by repeatedly subtracting their bit-count (A000120) from them (as explained in A071542), and including also n itself as one of the cases.
a(n) is always odd unless it is zero. In particular, each a(A213717(n)) is an odd number greater than one.

Examples

			a(10) = 3 because we include 10 itself ("1010" in binary) and the two numbers n for which it is true that n - A000120(n) = 10, i.e., 12 and 13 ("1100" and "1101" in binary). Furthermore, there do not exist any such numbers for 12 or 13, as both are members of A055938 (see also the comment at A213717).
Similarly, a(22) = 5 as there are the following five cases: 22 itself, 24 as 24-A000120(24) = 24-2 = 22 (note that 24 is in A055938), 25 as 25-A000120(25) = 25-3 = 22, and the two terminal nodes (leaves) branching from 25, that is, 28 & 29 (as 28-A000120(28) = 28-3 = 25, and 29-A000120(29) = 29-4=25).
		

Crossrefs

Cf. A179016.
Analogous sequences computed for other "beanstalk" or similar tree systems: A227643, A230427, A255327.

Formula

If A079559(n)=0, a(n)=1; otherwise, if A213719(n)=1, a(n)=0; otherwise a(n) = 1+a(A213723(n))+a(A213724(n)).
Other identities. For all n:
a(A179016(n)) = 0, a(A055938(n)) = 1, and a(A213717(n)) >= 3.
a(A213717(n)) = (2*A213726(A213717(n)))-1.

A213731 a(n)=0 if n is in A055938, a(n)=1 if n is in A179016, otherwise (i.e., n is in A213717), a(n)=2.

Original entry on oeis.org

1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 2, 1, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 1, 2, 0, 1, 2, 0, 0, 1, 2, 0, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 0, 1, 2, 0, 1, 2, 0, 0, 1, 2
Offset: 0

Views

Author

Antti Karttunen, Nov 01 2012

Keywords

Comments

Those natural numbers n for which a(n)=1 belong to the infinite trunk of "Carl White's beanstalk" (see A179016), while the numbers n for which a(n)=0, are the leaves (terminal, dead-end nodes) of the same beanstalk, while those n for which a(n)=2, are non-terminal nodes in its finite tendrils.

Crossrefs

Programs

Formula

a(n) = 2*A079559(n) - A213719(n).

A218613 Sizes of distinct new sidetrees ("tendrils", in the order of their appearance) that sprout along (A218787) the infinite trunk of beanstalk (A179016).

Original entry on oeis.org

0, 1, 2, 3, 2, 5, 6, 4, 4, 5, 5, 9, 10, 17, 17, 5, 19, 32, 6, 10, 8, 4, 3, 10, 33, 4, 5, 7, 34, 20, 31, 5, 62, 4, 7, 4, 5, 14, 33, 7, 54, 32, 12, 14, 3, 34, 47, 4, 8, 31, 32, 143, 10, 11, 17, 169, 13, 240, 59, 8, 7, 15, 18, 12, 33, 102, 5, 66, 116, 6, 11, 15
Offset: 1

Views

Author

Antti Karttunen, Nov 11 2012

Keywords

Crossrefs

a(n) = A213726(A218612(n))-1. All values A218549(n)-1 occur here at some point and in order.

Programs

Formula

a(n) = A218786(A218611(n)).

A262696 a(n)=0 if n is in A259934, otherwise number of terminal nodes (including n itself if it is a leaf) in that finite subtree whose root is n and whose edge-relation is defined by A049820(child) = parent.

Original entry on oeis.org

0, 2, 0, 1, 1, 1, 0, 1, 1, 13, 1, 13, 0, 1, 1, 11, 1, 11, 0, 1, 1, 10, 0, 10, 1, 1, 1, 10, 1, 9, 0, 8, 1, 1, 0, 8, 1, 1, 6, 7, 1, 1, 0, 1, 1, 6, 0, 6, 5, 1, 1, 6, 1, 5, 0, 1, 1, 5, 0, 3, 4, 3, 0, 1, 1, 3, 1, 1, 1, 2, 0, 1, 4, 1, 1, 1, 7, 1, 0, 1, 1, 7, 1, 6, 4, 1, 1, 6, 1, 1, 0, 5, 1, 1, 0, 4, 4, 4, 1, 1, 1, 1, 0, 1, 3, 4, 0, 4, 1, 1, 1, 3, 1, 1, 0, 1, 1, 1, 0, 1, 3, 0, 4, 1
Offset: 0

Views

Author

Antti Karttunen, Oct 04 2015

Keywords

Examples

			For n=1, its transitive closure (as defined by edge-relation A049820(child) = parent) is the union of {1} itself together with all its descendants: {1, 3, 4, 5, 7, 8}. We see that there are no other nodes in a subtree whose root is 1, because A049820(3) = 3 - d(3) = 1, A049820(4) = 1, A049820(5) = 3, A049820(7) = 5, A049820(8) = 4 and of these only 7 and 8 are terms of A045765. Thus a(1) = 2.
For n=9, its transitive closure is {9, 11, 13, 15, 16, 17, 19, 21, 23, 24, 27, 29, 31, 33, 35, 36, 37, 39, 41, 43, 45, 47, 51, 53, 55, 57, 59, 61, 63, 64, 65, 67, 69, 71, 73, 75, 77, 79}, of which only thirteen members: {13, 19, 24, 33, 36, 37, 43, 55, 63, 64, 67, 75, 79} are leaves (in A045765), thus a(9) = 13.
		

Crossrefs

Formula

If A262693(n) = 1 [when n is in A259934],
then a(n) = 0,
otherwise, if A060990(n) = 0 [when n is one of the leaves, A045765],
then a(n) = 1,
otherwise:
a(n) = Sum_{k = A082284(n) .. A262686(n)} [A049820(k) = n] * a(k).
(In the last clause [ ] stands for Iverson bracket, giving as its result 1 only when A049820(k) = n, and 0 otherwise).
Other identities:
For any n in A262511 but not in A259934, a(n) = a(A082284(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.

A230426 a(n)=0 if n is in the infinite trunk of factorial beanstalk (in A219666), otherwise the number of terminal nodes (leaves) in that finite branch of the beanstalk.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Nov 10 2013

Keywords

Comments

This sequence relates to the factorial base representation (A007623) in the same way as A213726 relates to the binary system.

Examples

			From 11 sprouts the following finite side-tree of "factorial beanstalk":
    18  19
     \  /
  14  15
   \  /
    11
Its leaves are the numbers 14, 18 and 19 (which all occur in A219658), whose factorial base representations (see A007623) are '210', '300' and '301' respectively. The corresponding parent nodes are obtained by subtracting the sum of factorial base digits, thus we get 18-3 = 15 and also 19-4 = 15, thus 15 ('211' in factorial base) is the parent of 18 and 19. For 14 and 15 we get 14-3 = 15-4 = 11, thus 11 is the parent of both 14 and 15, and the common ancestor of all numbers 11, 14, 15, 18 and 19.
For numbers not occurring in A219666 this sequence gives the number of leaves in such subtrees. Thus a(11)=3, a(14)=1 (counting just the leaf 14 itself), a(15)=2 and a(18) = a(19) = 1.
		

Crossrefs

A219658 gives the position of ones in this sequence (which are the leaves of the tree).
Differs from A230425 for the first time at n=34, where a(n)=4, while A230425(34)=3. Cf. also A230427.

Formula

If A230412(n)=0, a(n)=1; otherwise, if n is in A219666, a(n)=0; otherwise a(n) = a(A230423(n)) + a(A230424(n)).
Showing 1-9 of 9 results.