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.

A099246 Denominator of relative frequency of number of ones in the binary representation of n.

This page as a plain text file.
%I A099246 #16 Apr 05 2025 09:11:10
%S A099246 1,1,2,1,3,3,3,1,4,2,2,4,2,4,4,1,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,1,6,3,
%T A099246 3,2,3,2,2,3,3,2,2,3,2,3,3,6,3,2,2,3,2,3,3,6,2,3,3,6,3,6,6,1,7,7,7,7,
%U A099246 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
%N A099246 Denominator of relative frequency of number of ones in the binary representation of n.
%H A099246 Reinhard Zumkeller, <a href="/A099246/b099246.txt">Table of n, a(n) for n = 0..10000</a>
%H A099246 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>.
%F A099246 a(n)*A000120(n) = A099245(n)*A070939(n).
%F A099246 a(n) = A070939(n)/A099244(n) for n > 0.
%F A099246 a(n) = 1 iff n = A000225(k).
%F A099246 a(n) = if n=0 then 1 else A070939(n)/GCD(A070939(n), A000120(n)).
%t A099246 a[n_] := Denominator[First[#]/Total[#]] & @ DigitCount[n, 2, {1, 0}]; Array[a, 100, 0] (* _Amiram Eldar_, Apr 05 2025 *)
%o A099246 (Haskell)
%o A099246 import Data.Ratio ((%), denominator)
%o A099246 a099246 n = denominator $ (a000120 n) % (a070939 n)
%o A099246 -- _Reinhard Zumkeller_, Oct 10 2013
%Y A099246 Cf. A000120, A000225, A007088, A070939, A099244, A099245 (numerators).
%K A099246 nonn,frac,base
%O A099246 0,3
%A A099246 _Reinhard Zumkeller_, Oct 08 2004