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.

A382729 Total number of entries in rows 0,1,...,n of Pascal's triangle not divisible by 4.

This page as a plain text file.
%I A382729 #6 Aug 10 2025 18:35:45
%S A382729 1,3,6,10,13,19,25,33,36,42,50,62,68,80,92,108,111,117,125,137,145,
%T A382729 161,177,201,207,219,235,259,271,295,319,351,354,360,368,380,388,404,
%U A382729 420,444,452,468,488,520,536,568,600,648,654,666,682,706,722,754,786,834,846,870,902,950,974,1022,1070,1134,1137,1143,1151
%N A382729 Total number of entries in rows 0,1,...,n of Pascal's triangle not divisible by 4.
%o A382729 (Python)
%o A382729 def A382729(n): return 1+sum(bin(m)[2:].count('10')+2<<m.bit_count()-1 for m in range(1,n+1)) # _Chai Wah Wu_, Aug 10 2025
%Y A382729 Cf. A001316, A006046-A006048, A194458, A194459, A382720-A382731.
%K A382729 nonn
%O A382729 0,2
%A A382729 _N. J. A. Sloane_, Apr 23 2025