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.

Previous Showing 21-30 of 34 results. Next

A154452 Signature permutation of a Catalan bijection: The inverse of A154451.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 17 2009

Keywords

Comments

This automorphism of rooted plane binary trees switches the two descendant trees for every other vertex as it descends along the 111... ray, starting swapping already at the root. Specifically, *A154452 = psi(A154442), where the isomorphism psi is given in A153141 (see further comments there).

Crossrefs

Inverse: A154451. a(n) = A069767(A154454(n)) = A057163(A154456(A057163(n))). Cf. A069770, A154450.

A154453 Signature permutation of a Catalan bijection induced by generator "a" of the leftward recursing instance of Basilica group wreath recursion: a = (b,1), b = s(a,1).

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 17 2009

Keywords

Comments

This automorphism of rooted plane binary trees switches the two descendant trees for every other vertex as it returns back toward the root, after descending down to the leftmost tip of the tree along the 000... ray, so that the last vertex whose descendants are swapped, is the left-hand side child of the root and the root itself is fixed. Specifically, *A154453 = psi(A154443), where the isomorphism psi is given in A153141 (see further comments there).

Crossrefs

Inverse: A154454. a(n) = A154451(A069767(n)) = A057163(A154449(A057163(n))). Cf. A154455.
Differs from its inverse A154454 for the first time at n=49, where a(49)=63, while A154454(49)=64. Differs from A089854 for the first time at n=63, where a(63)=50, while A089854(63)=49. Differs from A131173 for the first time at n=26, where a(26)=26, while A131173(26)=27.

A154454 Signature permutation of a Catalan bijection: The inverse of A154453.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 17 2009

Keywords

Comments

This automorphism of rooted plane binary trees switches the two descendant trees for every other vertex as it descends along the 000... ray, but not starting swapping until at the left-hand side child of the root, leaving the root itself fixed. Specifically, *A154454 = psi(A154444), where the isomorphism psi is given in A153141 (see further comments there).

Crossrefs

Inverse: A154453. a(n) = A069768(A154452(n)) = A057163(A154450(A057163(n))). Cf. A069770, A154456.
Differs from its inverse A154453 for the first time at n=49, where a(49)=64, while A154454(49)=63. Differs from A089854 for the first time at n=49, where a(49)=64, while A089854(49)=63. Differs from A131173 for the first time at n=26, where a(26)=26, while A131173(26)=27.

A154455 Signature permutation of a Catalan bijection induced by generator "b" of the leftward recursing instance of Basilica group wreath recursion: a = (b,1), b = s(a,1).

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 17 2009

Keywords

Comments

This automorphism of rooted plane binary trees switches the two descendant trees for every other vertex as it returns back toward the root, after descending down to the leftmost tip of the tree along the 000... ray, so that the last vertex whose descendants are swapped is the root node of the tree. Specifically, *A154455 = psi(A154445), where the isomorphism psi is given in A153141 (see further comments there).

Crossrefs

Inverse: A154456. a(n) = A154449(A069767(n)) = A057163(A154451(A057163(n))). Cf. A069770, A154453.
Differs from A082345 for the first time at n=49, where a(49)=26, while A082345(49)=27. Differs from A122327 for the first time at n=26, where a(26)=49, while A122327(26)=50. Differs from A129612 for the first time at n=195, where a(195)=92, while A129612(195)=91.

A154456 Signature permutation of a Catalan bijection: The inverse of A154455.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 17 2009

Keywords

Comments

This automorphism of rooted plane binary trees switches the two descendant trees for every other vertex as it descends along the 000... ray, starting swapping already at the root. Specifically, *A154456 = psi(A154446), where the isomorphism psi is given in A153141 (see further comments there).

Crossrefs

Inverse: A154455. a(n) = A069768(A154450(n)) = A057163(A154452(A057163(n))). Cf. A069770, A154454.
Differs from A082346 and A122328 for the first time at n=26, where a(26)=49, while A082346(26)=A122328(26)=50. Differs from A129611 for the first time at n=91, where a(91)=196, while A129611(91)=195.

A153152 Rotated binary incrementing: For n<2 a(n)=n, if n=(2^k)-1, a(n)=(n+1)/2, otherwise a(n)=n+1.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Dec 20 2008

Keywords

Comments

A002487(n)/A002487(n+1), n > 0, runs through all the reduced nonnegative rationals exactly once. A002487 is the Stern's sequence. A002487(a(n)) = A002487(n+1) n>0 . - Yosu Yurramendi, Jul 07 2016

Crossrefs

Inverse: A153151.

Programs

  • Maple
    a := n -> if n < 2 then n elif convert(convert(n+1, base, 2), `+`) = 1 then (n+1)/2 else n+1 fi: seq(a(n), n=0..71); # Peter Luschny, Jul 16 2016
  • Mathematica
    Table[If[IntegerQ@ Log2[n + 1], (n + 1)/2, n + 1], {n, 0, 71}] /. Rational -> 0 (* _Michael De Vlieger, Jul 13 2016 *)
  • Python
    def ok(n): return n&(n - 1)==0
    def a(n): return n if n<2 else (n + 1)/2 if ok(n + 1) else n + 1 # Indranil Ghosh, Jun 09 2017
    
  • R
    maxlevel <- 5 # by choice
    a <- 1
    for(m in 1:maxlevel){
     a[2^m        ] <- 2^m + 1
     a[2^(m+1) - 1] <- 2^m
     for (k in 0:(2^m-2)){
       a[2^(m+1) + 2*k + 1] <- 2*a[2^m + k]
       a[2^(m+1) + 2*k + 2] <- 2*a[2^m + k] + 1}
    }
    a <- c(0, a)
    # Yosu Yurramendi, Sep 05 2020

A153246 Number of fleeing trees computed for Catalan bijection A057164.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Dec 22 2008

Keywords

Comments

A "fleeing tree" sequence computed for Catalan bijection CatBij gives for each binary tree A014486(n) the number of cases where, when a new V-node (a bud) is inserted into one of the A072643(n)+1 possible leaves of that tree, it follows that (CatBij tree) is not a subtree of (CatBij tree-with-bud-inserted). I.e., for each tree A014486(n), we compute Sum_{i=0}^A072643(n) (1 if catbij(n) is a subtree of catbij(A153250bi(n,i)), 0 otherwise). Here A153250 gives the bud-inserting operation. Note that for any Catalan Bijection, which is an image of "psi" isomorphism (see A153141) from the Automorphism Group of infinite binary trees, the result will be A000004, the zero-sequence. To satisfy that condition, CatBij should at least satisfy A127302(CatBij(n)) = A127302(n) for all n (clearly A057164 does not satisfy that, so we got nonzero terms here). However, that is just a necessary but not a sufficient condition. For example, A123493 & A123494 satisfy it, but they still produce nonzero sequences: A153247, A153248.

Crossrefs

A154444 Permutation of nonnegative integers: The inverse of A154443.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Jan 17 2009

Keywords

Crossrefs

Inverse: A154443. a(n) = A153142(A154442(n)) = A054429(A154440(A054429(n))). Cf. A072376, A153141-A153142, A154435-A154436, A154439-A154448. Corresponds to A154454 in the group of Catalan bijections.

Extensions

Spelling/notation corrections by Charles R Greathouse IV, Mar 18 2010

A240908 The sequency numbers of the 8 rows of a version of the Hadamard-Walsh matrix of order 8.

Original entry on oeis.org

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

Views

Author

Ross Drewe, Apr 14 2014

Keywords

Comments

The Hadamard (Hadamard-Walsh) matrix is widely used in telecommunications and signal analysis. It has 3 well-known forms which vary according to the sequency ordering of its rows: "natural" ordering, "dyadic" or Payley ordering, and sequency ordering. In a mathematical context the sequency is the number of zero crossings or transitions in a matrix row (although in a physical signal context, it is half the number of zero crossings per time period). The matrix row sequencies are a permutation of the set [0,1,2,...n-1], where n is the order of the matrix. For spectral analysis of signals the sequency-ordered form is needed. Unlike the dyadic ordering (given by A153141), the natural ordering requires a separate list for each matrix order. This sequence is the natural sequency ordering for an order 8 matrix.

Examples

			This is a fixed length sequence of only 8 values, as given.
		

Crossrefs

Cf. A240909 "natural order" sequencies for Hadamard-Walsh matrix, order 16.
Cf. A240910 "natural order" sequencies for Hadamard-Walsh matrix, order 32.
Cf. A153141 "dyadic order" sequencies for Hadamard-Walsh matrix, all orders.
Cf. A000975(n) is sequency of last row of H(n). - William P. Orrick, Jun 28 2015

Formula

Recursion: H(2)=[1 1; 1 -1]; H(n) = H(n-1)*H(2), where * is Kronecker matrix product.

Extensions

Definition of H(n) corrected by William P. Orrick, Jun 28 2015

A240910 The sequency numbers of the 32 rows of a Hadamard-Walsh matrix, order 32.

Original entry on oeis.org

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

Views

Author

Ross Drewe, Apr 14 2014

Keywords

Comments

See A240908 for context. This sequence is the natural sequency ordering for an order 32 matrix.

Examples

			This is a fixed length sequence of only 32 values, as given in full above.
		

Crossrefs

Cf. A240908 "natural order" sequencies for Hadamard-Walsh matrix, order 8.
Cf. A240909 "natural order" sequencies for Hadamard-Walsh matrix, order 16.
Cf. A153141 "dyadic order" sequencies for Hadamard-Walsh matrix, all orders.
Cf. A000975(n) is sequency of last row of H(n). - William P. Orrick, Jun 28 2015

Formula

Recursion: H(2) = [1 1; 1 -1]; H(n) = H(n-1) * H(2), where * is the Kronecker matrix product.

Extensions

Definition of H(n) corrected by William P. Orrick, Jun 28 2015
Previous Showing 21-30 of 34 results. Next