login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A364569
Length of the common prefix in the binary expansions of A156552(n) and n-1 [= A156552(A005940(n))].
5
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,3
LINKS
PROG
(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));
CROSSREFS
Cf. also A347380.
Sequence in context: A227314 A356321 A128924 * A239957 A374684 A230040
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 14 2023
STATUS
approved