login
Numerator of relative frequency of number of ones in binary representation of n.
4

%I #10 Oct 10 2013 16:23:07

%S 0,1,1,1,1,2,2,1,1,1,1,3,1,3,3,1,1,2,2,3,2,3,3,4,2,3,3,4,3,4,4,1,1,1,

%T 1,1,1,1,1,2,1,1,1,2,1,2,2,5,1,1,1,2,1,2,2,5,1,2,2,5,2,5,5,1,1,2,2,3,

%U 2,3,3,4,2,3,3,4,3,4,4,5,2,3,3,4,3,4,4,5,3,4,4,5,4,5,5,6,2,3,3,4,3,4,4,5,3

%N Numerator of relative frequency of number of ones in binary representation of n.

%C Denominator = A099246;

%C a(n)*A070939(n) = A099246(n)*A000120(n);

%C for n>0: a(n) = A000120(n)/A099244(n).

%H Reinhard Zumkeller, <a href="/A099245/b099245.txt">Table of n, a(n) for n = 0..10000</a>

%H <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>

%F a(n) = if n=0 then 0 else A000120(n)/GCD(A070939(n), A000120(n)).

%o (Haskell)

%o import Data.Ratio ((%), numerator)

%o a099245 n = numerator $ (a000120 n) % (a070939 n)

%o -- _Reinhard Zumkeller_, Oct 10 2013

%Y Cf. A007088.

%K nonn,frac

%O 0,6

%A _Reinhard Zumkeller_, Oct 08 2004