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

A253558 a(n) = A253556(n) + 1.

Original entry on oeis.org

1, 1, 2, 1, 3, 2, 4, 1, 2, 3, 5, 2, 6, 4, 3, 1, 7, 2, 8, 3, 2, 5, 9, 2, 3, 6, 4, 4, 10, 3, 11, 1, 3, 7, 4, 2, 12, 8, 5, 3, 13, 2, 14, 5, 2, 9, 15, 2, 4, 3, 3, 6, 16, 4, 3, 4, 4, 10, 17, 3, 18, 11, 6, 1, 5, 3, 19, 7, 3, 4, 20, 2, 21, 12, 7, 8, 5, 5, 22, 3, 5, 13, 23, 2, 4, 14, 4, 5, 24, 2, 4, 9, 2, 15, 6, 2, 25, 4, 8, 3, 26, 3
Offset: 1

Views

Author

Antti Karttunen, Jan 12 2015

Keywords

Comments

Consider the binary trees illustrated in A252753 and A252755: If we start from any n, computing successive iterations of A253554 until 1 is reached (i.e., we are traversing level by level towards the root of the tree, starting from that vertex of the tree where n is located at), a(n) gives the number of odd numbers encountered on the path (i.e., including both the final 1 and the starting n if it was odd).

Crossrefs

One more than A253556.
Powers of two, A000079, gives the positions of ones.
After n=1, differs from A061395 for the first time at n=21, where a(21) = 2, while A061395(21) = 4.

Programs

Formula

a(n) = A253556(n) + 1.
a(n) = A080791(A252754(n)) + 1. [One more than the number of nonleading 0-bits in A252754(n).]
Other identities.
For all n >= 1:
a(A000040(n)) = n.
For all n >= 2:
a(n) = A000120(A252756(n)). [Binary weight of A252756(n).]
a(n) = A253555(n) - A253559(n).

A253557 a(1) = 0; after which, a(2n) = 1 + a(n), a(2n+1) = a(A268674(2n+1)).

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 12 2015

Keywords

Comments

Consider the binary trees illustrated in A252753 and A252755: If we start from any n, computing successive iterations of A253554 until 1 is reached (i.e., we are traversing level by level towards the root of the tree, starting from that vertex of the tree where n is located), a(n) gives the number of even numbers encountered on the path (i.e., including both 2 and the starting n if it was even).
This is bigomega (A001222) analog for nonstandard factorization based on the sieve of Eratosthenes (A083221). See A302041 for an omega-analog. - Antti Karttunen, Mar 31 2018

Crossrefs

Essentially, one more than A253559.
Primes, A000040, gives the positions of ones.
Differs from A001222 for the first time at n=21, where a(21) = 3, while A001222(21) = 2.

Programs

Formula

a(1) = 0; after which, a(2n) = 1 + a(n), a(2n+1) = a(A268674(2n+1)).
a(n) = A253555(n) - A253556(n).
a(n) = A000120(A252754(n)). [Binary weight of A252754(n).]
Other identities.
For all n >= 0:
a(2^n) = n.
For all n >= 2:
a(n) = A080791(A252756(n)) + 1. [One more than the number of nonleading 0-bits in A252756(n).]
From Antti Karttunen, Apr 01 2018: (Start)
a(1) = 0; for n > 1, a(n) = 1 + a(A302042(n)).
a(n) = A001222(A250246(n)).
(End)

Extensions

Definition (formula) corrected by Antti Karttunen, Mar 31 2018

A252754 Inverse of "Tree of Eratosthenes" permutation: a(1) = 0, after which, a(2n) = 1 + 2*a(n), a(2n+1) = 2 * a(A268674(2n+1)).

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 8, 7, 6, 9, 16, 11, 32, 17, 10, 15, 64, 13, 128, 19, 14, 33, 256, 23, 12, 65, 18, 35, 512, 21, 1024, 31, 22, 129, 20, 27, 2048, 257, 34, 39, 4096, 29, 8192, 67, 30, 513, 16384, 47, 24, 25, 26, 131, 32768, 37, 28, 71, 38, 1025, 65536, 43, 131072, 2049, 66, 63, 36, 45, 262144, 259, 46, 41, 524288, 55, 1048576, 4097, 130, 515, 40
Offset: 1

Views

Author

Antti Karttunen, Jan 02 2015

Keywords

Crossrefs

Inverse: A252753.
Fixed points of a(n)+1: A253789.
Similar permutations: A156552, A252756, A054429, A250246, A269388.
Differs from A156552 for the first time at n=21, where a(21) = 14, while A156552(21) = 18.

Programs

Formula

a(1) = 0, after which, a(2n) = 1 + 2*a(n), a(2n+1) = 2 * a(A268674(2n+1)).
As a composition of related permutations:
a(n) = A054429(A252756(n)).
a(n) = A156552(A250246(n)).
From Antti Karttunen, Mar 31 2018: (Start)
A000120(a(n)) = A253557(n).
A069010(a(n)) = A302041(n).
A132971(a(n)) = A302050(n).
A106737(a(n)) = A302051(n).
(End)

Extensions

Name edited and formula corrected by Antti Karttunen, Mar 31 2018

A252756 Permutation of nonnegative integers: a(1) = 0, a(2) = 1, a(2n) = 2*a(n), a(2n+1) = 1 + 2*a(A250470(2n+1)).

Original entry on oeis.org

0, 1, 3, 2, 7, 6, 15, 4, 5, 14, 31, 12, 63, 30, 13, 8, 127, 10, 255, 28, 9, 62, 511, 24, 11, 126, 29, 60, 1023, 26, 2047, 16, 25, 254, 27, 20, 4095, 510, 61, 56, 8191, 18, 16383, 124, 17, 1022, 32767, 48, 23, 22, 21, 252, 65535, 58, 19, 120, 57, 2046, 131071, 52, 262143, 4094, 125, 32, 59, 50, 524287, 508, 49, 54, 1048575, 40
Offset: 1

Views

Author

Antti Karttunen, Jan 02 2015

Keywords

Crossrefs

Inverse: A252755.
Similar permutations: A243071, A252754, A054429, A250246.
Cf. also A250470, A253556 - A253559.
Differs from A243071 for the first time at n=21, where a(21) = 9, while A243071(21) = 29.

Formula

a(1) = 0, a(2) = 1, a(2n) = 2*a(n), a(2n+1) = 1 + 2*a(A250470(2n+1)).
As a composition of related permutations:
a(n) = A054429(A252754(n)).
a(n) = A243071(A250246(n)).

A253555 a(1) = 0, a(2n) = 1 + a(n), a(2n+1) = 1 + a(A250470(2n+1)); also binary width of terms of A252754 and A252756.

Original entry on oeis.org

0, 1, 2, 2, 3, 3, 4, 3, 3, 4, 5, 4, 6, 5, 4, 4, 7, 4, 8, 5, 4, 6, 9, 5, 4, 7, 5, 6, 10, 5, 11, 5, 5, 8, 5, 5, 12, 9, 6, 6, 13, 5, 14, 7, 5, 10, 15, 6, 5, 5, 5, 8, 16, 6, 5, 7, 6, 11, 17, 6, 18, 12, 7, 6, 6, 6, 19, 9, 6, 6, 20, 6, 21, 13, 8, 10, 6, 7, 22, 7, 7, 14, 23, 6, 6, 15, 6, 8, 24, 6, 6, 11, 6, 16, 7, 7, 25, 6, 9, 6
Offset: 1

Views

Author

Antti Karttunen, Jan 12 2015

Keywords

Comments

a(n) tells how many iterations of A253554 are needed before 1 is reached, i.e., the distance of n from 1 in binary trees like A252753 and A252755.

Crossrefs

Differs from A252464 for the first time at n=21, where a(21) = 4, while A252463(21) = 5.

Formula

a(1) = 0; for n > 1: a(n) = 1 + a(A253554(n)).
a(n) = A029837(1+A252754(n)) = A029837(1+A252756(n)).
a(n) = A253556(n) + A253557(n).
Other identities.
For all n >= 1:
a(A000079(n)) = n. [I.e., a(2^n) = n.]
a(A000040(n)) = n.
a(A001248(n)) = n+1.
For n >= 2, a(n) = A253558(n) + A253559(n).

A253559 a(1) = 0; for n>1: a(n) = A253557(n) - 1.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 12 2015

Keywords

Comments

Consider the binary trees illustrated in A252753 and A252755: If we start from any n, computing successive iterations of A253554 until 1 is reached (i.e., we are traversing level by level towards the root of the tree, starting from that vertex of the tree where n is located), a(n) gives the number of even numbers > 2 encountered on the path (i.e., excluding the 2 from the count but including the starting n if it was even).

Crossrefs

Essentially, one less than A253557.
A008578 gives the positions of zeros.
Differs from A252736 for the first time at n=21, where a(21) = 2, while A252736(21) = 1.

Programs

Formula

a(n) = A080791(A252756(n)). [Number of nonleading 0-bits in A252756(n).]
a(1) = 0; for n>1: a(n) = A253557(n) - 1.
Other identities. For all n >= 2:
a(n) = A000120(A252754(n)) - 1. [One less than the binary weight of A252754(n).]
a(n) = A253555(n) - A253558(n).
Showing 1-6 of 6 results.