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.

A220115 a(n) = A000120(n) - A007895(n), the number of 1's in binary expansion of n minus the number of terms in Zeckendorf representation of n.

This page as a plain text file.
%I A220115 #13 Feb 05 2020 04:03:10
%S A220115 0,0,0,1,-1,1,0,1,0,0,0,1,-1,2,1,2,-1,-1,0,0,-1,2,1,2,0,0,1,1,0,2,1,2,
%T A220115 -2,-2,1,1,0,1,0,2,-1,0,1,1,0,1,0,3,-1,0,0,0,0,0,0,4,1,2,2,2,2,2,2,4,
%U A220115 -2,-1,-1,-1,0,0,0,1,-2,0,-1,0,1,1,1,2,-2
%N A220115 a(n) = A000120(n) - A007895(n), the number of 1's in binary expansion of n minus the number of terms in Zeckendorf representation of n.
%H A220115 Amiram Eldar, <a href="/A220115/b220115.txt">Table of n, a(n) for n = 0..10000</a>
%F A220115 a(n) = A000120(n) - A007895(n).
%e A220115 a(4) = A000120(4) - A007895(4) = 1 - 2 = -1.
%t A220115 zeck = DigitCount[Select[Range[0, 500], BitAnd[#, 2*#] == 0&], 2, 1]; DigitCount[Range[0, Length[zeck]-1], 2, 1] - zeck (* _Jean-François Alcover_, Jan 25 2018 *)
%Y A220115 Cf. A000120, A007895.
%K A220115 base,sign,easy
%O A220115 0,14
%A A220115 _Alex Ratushnyak_, Dec 05 2012