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.

A102913 Take characteristic function of the semiprimes A001358, interpret it as a binary fraction and convert to a decimal fraction.

This page as a plain text file.
%I A102913 #18 Feb 16 2025 08:32:56
%S A102913 0,4,0,5,7,3,5,0,0,2,0,1,3,9,8,0,6,8,6,7,4,3,1,1,2,6,6,4,2,3,5,3,5,7,
%T A102913 5,0,6,9,3,6,2,7,5,8,2,1,9,4,0,0,2,3,5,8,6,0,8,3,3,4,0,6,9,4,6,3,3,3,
%U A102913 6,2,5,2,4,7,3,5,1,3,5,1,3,9,1,0,5,4,4,2,5,2,5,8,2,3,8,0,5,8,6,4,3,3,4,5,2
%N A102913 Take characteristic function of the semiprimes A001358, interpret it as a binary fraction and convert to a decimal fraction.
%H A102913 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/PrimeConstant.html">Prime Constant</a>.
%H A102913 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Semiprime.html">Semiprime</a>.
%H A102913 Eric Weisstein et al., <a href="https://mathworld.wolfram.com/CharacteristicFunction.html">Characteristic Function</a>.
%F A102913 The characteristic function of the semiprimes is the function f(n) = 1 iff n is semiprime, 0 otherwise. This begins, for n = 0, 1, 2, 3, ... f(n) = 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1... If we concatenate these bits and interpret them as the binary fraction 0.0000101001100011000001... (base 2) we have, expressed as a decimal fraction, 0.0405735002013980686743112664235357506936275821940023586083340694633362...
%F A102913 The characteristic function of A001358 is A064911 (for n >= 1, starting with 0, 0, 0, 1 ...). The binary constant here has an additional 0 after the binary point. - _Georg Fischer_, Aug 04 2021
%t A102913 Semiprime[n_] := If[Plus @@ Last[ Transpose[ FactorInteger[n]]] == 2, 1, 0]; RealDigits[ FromDigits[{Table[ Semiprime[n], {n, 2, 350}], -2}, 2], 10, 111][[1]] (* _Ed Pegg Jr_ *)
%Y A102913 For the continued fraction form of the semiprime constant, see A102914. For the equivalent characteristic function for primes, see A010051; interpreted as a binary fraction see A051006; for the continued fraction form of that see A051007.
%Y A102913 Cf. A001358, A010051, A051006, A064911, A102914.
%K A102913 cons,nonn
%O A102913 0,2
%A A102913 _Jonathan Vos Post_, Jan 17 2005
%E A102913 More terms from _Robert G. Wilson v_, Jan 24 2005