Displaying 1-10 of 55 results found.
a(1) = 0, a(2) = 1, for n > 2, if A079559(n) = 0, a(n) = 2*a( A256992(n)), otherwise a(n) = 1 + 2*a( A256992(n)).
+20
10
0, 1, 3, 7, 2, 6, 15, 5, 14, 13, 31, 4, 12, 30, 11, 29, 10, 27, 63, 28, 26, 9, 25, 62, 61, 23, 8, 24, 60, 22, 59, 21, 58, 55, 127, 20, 54, 57, 53, 126, 19, 51, 56, 52, 18, 125, 123, 50, 47, 17, 124, 122, 49, 121, 46, 45, 119, 16, 48, 120, 44, 118, 43, 117, 42, 111, 255, 116, 110, 41, 109, 254, 115, 107, 40, 108, 114, 253, 39, 106, 103
COMMENTS
Note the indexing: the domain starts from 1, while the range includes also zero.
FORMULA
a(1) = 0, a(2) = 1, for n > 2, if A079559(n) = 0 [when n is a term of A055938], a(n) = 2*a( A256992(n)), otherwise a(n) = 1 + 2*a( A256992(n)).
As a composition of other permutations:
Other identities. For all n >= 1:
a(1) = 0, and for n > 1, if A079559(n) = 0, a(n) = 1 + 2*a( A256992(n)), otherwise a(n) = 2*a( A256992(n)).
+20
10
0, 1, 2, 4, 3, 5, 8, 6, 9, 10, 16, 7, 11, 17, 12, 18, 13, 20, 32, 19, 21, 14, 22, 33, 34, 24, 15, 23, 35, 25, 36, 26, 37, 40, 64, 27, 41, 38, 42, 65, 28, 44, 39, 43, 29, 66, 68, 45, 48, 30, 67, 69, 46, 70, 49, 50, 72, 31, 47, 71, 51, 73, 52, 74, 53, 80, 128, 75, 81, 54, 82, 129, 76, 84, 55, 83, 77, 130, 56, 85, 88, 78, 131, 57, 86
COMMENTS
Note the indexing: the domain starts from 1, while the range includes also zero.
FORMULA
As a composition of other permutations:
Other identities. For all n >= 1:
0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 6, 5, 6, 7, 7, 8, 8, 9, 10, 9, 10, 11, 12, 11, 13, 14, 12, 13, 14, 15, 15, 16, 16, 17, 18, 17, 18, 19, 20, 19, 21, 22, 20, 21, 22, 23, 24, 23, 25, 26, 24, 25, 27, 28, 26, 29, 30, 27, 28, 29, 30, 31, 31, 32, 32, 33, 34, 33, 34, 35, 36, 35, 37, 38, 36, 37, 38, 39, 40, 39, 41, 42, 40, 41, 43, 44, 42
COMMENTS
In other words, if n = A005187(k) for some k >= 1, then a(n) = k-1, otherwise it must be that n = A055938(h) for some h, and then a(n) = h.
In binary trees like A233276 and A233278, a(n) gives the contents at the parent node of node containing n, for any n >= 1.
When iterating a(n), a(a(n)), a(a(a(n))), and so on, A070939(n) = A256478(n) + A256479(n) = A257248(n) + A257249(n) gives the number of steps needed to reach zero, from any starting value n >= 1.
1, 2, 3, 5, 4, 6, 7, 9, 10, 15, 11, 8, 12, 14, 25, 21, 18, 35, 13, 20, 30, 27, 45, 22, 33, 49, 16, 24, 28, 50, 55, 75, 42, 77, 17, 36, 70, 63, 105, 26, 125, 175, 40, 60, 54, 39, 65, 90, 121, 81, 44, 66, 135, 99, 98, 147, 91, 32, 48, 56, 100, 110, 245, 165, 150, 143, 19, 84, 154, 225, 231, 34, 275, 385, 72, 140, 126, 51, 343, 210, 539, 189, 52
COMMENTS
A more recursed variant of A279336.
FORMULA
As a composition of other permutations:
a(0) = 0; and for n >= 1, if A079559(n) = 1, then a(n) = 1 + a( A213714(n)-1), otherwise a(n) = a( A234017(n)).
+20
7
0, 1, 1, 2, 2, 1, 2, 3, 3, 2, 2, 3, 1, 2, 3, 4, 4, 3, 3, 3, 2, 2, 4, 2, 3, 3, 4, 1, 2, 3, 4, 5, 5, 4, 4, 4, 3, 3, 4, 3, 3, 3, 5, 2, 2, 4, 3, 4, 2, 4, 5, 3, 3, 2, 3, 4, 4, 5, 1, 2, 3, 4, 5, 6, 6, 5, 5, 5, 4, 4, 5, 4, 4, 4, 5, 3, 3, 4, 4, 4, 3, 4, 6, 3, 3, 3, 3, 5, 5, 4, 2, 2, 4, 3, 5, 3, 4, 5, 6, 2, 4, 4, 4, 5, 3, 4, 3, 3, 2, 5, 5, 3, 6, 2, 4, 4, 3, 4, 5, 5, 6, 1, 2, 3, 4, 5, 6, 7, 7
COMMENTS
a(n) tells how many nonzero terms of A005187 are encountered when traversing toward the root of binary tree A233276, starting from the node containing n. This count includes both n (in case it is a term of A005187) and 1 (but not 0). See also comments in A256479 and A256991.
The 1's (seem to) occur at positions given by A000325.
FORMULA
a(0) = 0; and for n >= 1, if A079559(n) = 1, then a(n) = 1 + a( A213714(n)-1), otherwise a(n) = a( A234017(n)).
Other identities and observations. For all n >= 1:
PROG
(Scheme, with memoization-macro definec)
;; Alternative definitions:
CROSSREFS
Cf. A000120, A000325, A005187, A070939, A079559, A080791, A213714, A234017, A233275, A233276, A233277, A255559, A256479, A256991.
a(1) = 0, and for n > 1, if A079559(n) = 0, then a(n) = 1 + a( A234017(n)), otherwise a(n) = a( A213714(n)-1).
+20
6
0, 1, 0, 1, 2, 1, 0, 1, 2, 2, 1, 3, 2, 1, 0, 1, 2, 2, 2, 3, 3, 1, 3, 2, 2, 1, 4, 3, 2, 1, 0, 1, 2, 2, 2, 3, 3, 2, 3, 3, 3, 1, 4, 4, 2, 3, 2, 4, 2, 1, 3, 3, 4, 3, 2, 2, 1, 5, 4, 3, 2, 1, 0, 1, 2, 2, 2, 3, 3, 2, 3, 3, 3, 2, 4, 4, 3, 3, 3, 4, 3, 1, 4, 4, 4, 4, 2, 2, 3, 5, 5, 3, 4, 2, 4, 3, 2, 1, 5, 3, 3, 3, 2, 4, 3, 4, 4, 5, 2, 2, 4, 1, 5, 3, 3, 4, 3, 2, 2, 1, 6, 5, 4, 3, 2, 1, 0, 1
COMMENTS
a(n) tells how many terms of A055938 are encountered when traversing toward the root of binary tree A233276, starting from the node containing n. This count includes also n in case it itself is a term of A055938. See also comments in A256478 and A256991.
FORMULA
a(1) = 0, and for n > 1, if A079559(n) = 0, then a(n) = 1 + a( A234017(n)), otherwise a(n) = a( A213714(n)-1).
Other identities. For all n >= 1:
PROG
(Scheme, with memoization-macro definec)
;; Alternative definitions:
CROSSREFS
Cf. A000120, A055938, A070939, A079559, A080791, A213714, A234017, A233275, A233276, A233277, A256478, A256991.
Cf. also A000225 (gives the positions zeros).
a(1) = 0; and for n > 1, if A079559(n) = 1, then a(n) = 1 + a( A213714(n)-1), otherwise a(n) = a( A234017(n)).
+20
4
0, 0, 1, 1, 0, 1, 2, 2, 1, 1, 2, 0, 1, 2, 3, 3, 2, 2, 2, 1, 1, 3, 1, 2, 2, 3, 0, 1, 2, 3, 4, 4, 3, 3, 3, 2, 2, 3, 2, 2, 2, 4, 1, 1, 3, 2, 3, 1, 3, 4, 2, 2, 1, 2, 3, 3, 4, 0, 1, 2, 3, 4, 5, 5, 4, 4, 4, 3, 3, 4, 3, 3, 3, 4, 2, 2, 3, 3, 3, 2, 3, 5, 2, 2, 2, 2, 4, 4, 3, 1, 1, 3, 2, 4, 2, 3, 4, 5, 1, 3, 3, 3, 4, 2, 3, 2, 2, 1, 4, 4, 2, 5, 1, 3, 3, 2, 3, 4, 4, 5, 0, 1, 2, 3, 4, 5, 6, 6
COMMENTS
a(n) tells how many nonzero terms of A005187 are encountered when traversing toward the root of binary tree A233276, starting from the node containing n and before 1 is reached. This count includes both n (in case it is a term of A005187) but excludes the 1 and 0 at the root. See also comments in A257249, A256478 and A256991.
FORMULA
a(1) = 0; and for n > 1, if A079559(n) = 1, then a(n) = 1 + a( A213714(n)-1), otherwise a(n) = a( A234017(n)).
Other identities. For all n >= 1:
PROG
(Scheme, alternative definitions, the first one utilizing memoizing definec-macro)
CROSSREFS
Cf. A000120, A000325, A005187, A070939, A079559, A080791, A213714, A234017, A233275, A233276, A233277, A255559, A257249, A256991.
a(0) = 1, and for n >= 1, if A079559(n) = 0, then a(n) = 1 + a( A234017(n)), otherwise a(n) = a( A213714(n)-1).
+20
4
1, 1, 2, 1, 2, 3, 2, 1, 2, 3, 3, 2, 4, 3, 2, 1, 2, 3, 3, 3, 4, 4, 2, 4, 3, 3, 2, 5, 4, 3, 2, 1, 2, 3, 3, 3, 4, 4, 3, 4, 4, 4, 2, 5, 5, 3, 4, 3, 5, 3, 2, 4, 4, 5, 4, 3, 3, 2, 6, 5, 4, 3, 2, 1, 2, 3, 3, 3, 4, 4, 3, 4, 4, 4, 3, 5, 5, 4, 4, 4, 5, 4, 2, 5, 5, 5, 5, 3, 3, 4, 6, 6, 4, 5, 3, 5, 4, 3, 2, 6, 4, 4, 4, 3, 5, 4, 5, 5, 6, 3, 3, 5, 2, 6, 4, 4, 5, 4, 3, 3, 2, 7, 6, 5, 4, 3, 2, 1, 2
FORMULA
a(0) = 1, and for n >= 1, if A079559(n) = 0, then a(n) = 1 + a( A234017(n)), otherwise a(n) = a( A213714(n)-1).
Other identities. For all n >= 1:
PROG
(Scheme, alternative definitions, the first one utilizing memoizing definec-macro)
CROSSREFS
Cf. A000120, A003188, A005811, A055938, A070939, A079559, A080791, A213714, A234017, A233275, A233277, A233278, A257248, A256991.
1, 2, 3, 5, 4, 6, 7, 9, 8, 15, 11, 10, 12, 14, 25, 27, 16, 35, 13, 18, 20, 21, 45, 22, 33, 49, 24, 26, 28, 30, 125, 81, 32, 77, 17, 34, 36, 75, 63, 38, 55, 175, 40, 42, 44, 39, 65, 46, 121, 135, 48, 50, 51, 99, 52, 105, 343, 54, 56, 58, 60, 62, 625, 243, 64, 143, 19, 66, 68, 57, 225, 70, 245, 275, 72, 74, 76, 69, 91, 78, 539, 189, 80
COMMENTS
For n > 1, a(n) = the number which is in the same position of array A246278 where n is located in array A256997.
1, 2, 3, 5, 4, 6, 7, 9, 10, 15, 11, 8, 12, 14, 25, 27, 18, 35, 13, 20, 30, 21, 33, 22, 39, 49, 16, 24, 28, 50, 65, 51, 54, 77, 17, 36, 70, 57, 87, 26, 55, 85, 40, 60, 42, 63, 95, 66, 121, 45, 44, 78, 69, 81, 98, 147, 119, 32, 48, 56, 100, 130, 125, 159, 102, 143, 19, 108, 154, 105, 207, 34, 145, 215, 72, 140, 114, 75, 91, 174, 133, 117, 52
FORMULA
As a composition of other permutations:
Search completed in 0.031 seconds
|