Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #5 Feb 06 2019 15:46:54
%S 0,1,2,3,2,3,2,3,2,3,3,2,3,4,5,4,5,4,5,4,4,4,5,4,5,4,5,4,5,4,5,4,5,4,
%T 5,4,5,6,7,3,3,4,5,5,4,5,4,5,4,5,5,6,7,4,4,5,5,5,4,5,5,4,5,6,7,5,7,6,
%U 4,5,4,5,6,7,6,7,6,7,6,7,7,7,6,4,5,4,5,6,7,4,5,5,6,7,6,7,6,7,5,5,7,4,5,6,6
%N Sum of binary digits ( = sum of ternary digits ) of terms in A037301.
%H G. C. Greubel, <a href="/A178620/b178620.txt">Table of n, a(n) for n = 0..10000</a>
%t s = {}; Do[id3 = IntegerDigits[n, 3]; id2 = IntegerDigits[n, 2];
%t If[(t = Total[id2]) == Total[id3], AppendTo[s, t]], {n, 0, 10^3}]; s
%Y Cf. A037301 (sum of base 2 digits of n) = (sum of base 3 digits of n).
%K base,nonn
%O 0,3
%A _Zak Seidov_, May 31 2010