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.

A119917 Number of rationals in [0, 1) consisting just of repeating bits of period at most n.

This page as a plain text file.
%I A119917 #4 Jun 30 2025 20:01:23
%S A119917 1,3,9,21,51,105,231,471,975,1965,4011,8031,16221,32475,65205,130485,
%T A119917 261555,523131,1047417,2094957,4191975,8384229,16772835,33545715,
%U A119917 67100115,134200785,268418001,536837061,1073707971,2147415981
%N A119917 Number of rationals in [0, 1) consisting just of repeating bits of period at most n.
%F A119917 a(n) = sum_{i=1..n} sum_{d|i} (2^d - 1) * mu(i/d)
%e A119917 1/6 = 0.0010101... has repeating bits of period 2, but is not counted because it has a preperiodic part (i.e., the repetition doesn't start immediately after the binary point). Also, 0 = 0.000... is counted and considered to have period 1.
%e A119917 a(1) = |{0 = 0.(0)...}| = 1
%e A119917 a(2) = |{0 = 0.(0)..., 1/3 = 0.(01)..., 2/3 = 0.(10)...}| = 3
%t A119917 Table[Sum[Plus@@((2^Divisors[i]-1)MoebiusMu[i/Divisors[i]]),{i,1,n}],{n,1,30 }]
%Y A119917 Partial sums of A038199.
%K A119917 nonn,base,easy
%O A119917 1,2
%A A119917 Brad Chalfan (brad(AT)chalfan.net), May 29 2006