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.

A364569 Length of the common prefix in the binary expansions of A156552(n) and n-1 [= A156552(A005940(n))].

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Aug 14 2023

Keywords

Crossrefs

Cf. also A347380.

Programs

  • PARI
    Abincompreflen(n, m) = { my(x=binary(n), y=binary(m), u=min(#x, #y)); for(i=1, u, if(x[i]!=y[i], return(i-1))); (u); };
    A364569(n) = Abincompreflen(A156552(n), (n-1));