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.

A372554 a(n) = A050602(n, 2n+1).

This page as a plain text file.
%I A372554 #7 May 05 2024 21:37:49
%S A372554 0,2,0,2,0,4,2,2,0,2,0,4,2,3,2,2,0,2,0,2,0,6,4,4,2,2,2,3,2,3,2,2,0,2,
%T A372554 0,2,0,4,2,2,0,2,0,6,4,4,4,4,2,2,2,2,2,5,3,3,2,2,2,3,2,3,2,2,0,2,0,2,
%U A372554 0,4,2,2,0,2,0,4,2,3,2,2,0,2,0,2,0,8,6,6,4,4,4,4,4,4,4,4,2,2,2,2,2,4,2,2,2,2
%N A372554 a(n) = A050602(n, 2n+1).
%H A372554 Antti Karttunen, <a href="/A372554/b372554.txt">Table of n, a(n) for n = 0..100000</a>
%H A372554 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>
%o A372554 (PARI)
%o A372554 A050602sq(x,y) = if(!bitand(x,y), 0, 1+A050602sq(bitxor(x,y),2*bitand(x,y)));
%o A372554 A372554(n) = A050602sq(n,n+n+1);
%Y A372554 Cf. A022340 (positions of 0's), A050602.
%Y A372554 Cf. A002450 (seems to give the positions of records).
%Y A372554 Cf. also A329603.
%K A372554 nonn
%O A372554 0,2
%A A372554 _Antti Karttunen_, May 05 2024