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.

A337634 Number of numbers k <= n such that both k and k+1 are in A095096.

This page as a plain text file.
%I A337634 #12 Feb 05 2023 01:59:37
%S A337634 0,0,0,0,0,0,1,1,1,2,3,3,3,3,4,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,
%T A337634 7,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,11,11,11,12,13,13,13,13,
%U A337634 13,13,13,13,13,13,14,14,14,14,14,14,14,15,16,16,16,16,16,16,16,17
%N A337634 Number of numbers k <= n such that both k and k+1 are in A095096.
%D A337634 Anton Shutov, On the sum of digits of the Zeckendorf representations of two consecutive numbers, Fib. Q., 58:3 (2020), 203-207.
%H A337634 Amiram Eldar, <a href="/A337634/b337634.txt">Table of n, a(n) for n = 0..10000</a>
%t A337634 s = SequencePosition[Mod[DigitCount[Select[Range[0, 400], BitAnd[#, 2 #] == 0 &], 2, 1], 2], {0, 0}][[;; , 1]] - 1; t = Table[0, {s[[-1]] + 1}]; t[[s + 1]] = 1; Accumulate[t] (* _Amiram Eldar_, Feb 05 2023 *)
%Y A337634 Cf. A020899, A095096, A337287, A337288, A337289, A337290, A337635, A337636, A337637.
%K A337634 nonn,base
%O A337634 0,10
%A A337634 _N. J. A. Sloane_, Sep 12 2020
%E A337634 Offset corrected by _Amiram Eldar_, Feb 05 2023