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.

A070549 a(n) = Cardinality{ k in range 1 <= k <= n such that Moebius(k) = -1 }.

This page as a plain text file.
%I A070549 #24 Oct 01 2023 02:39:32
%S A070549 0,1,2,2,3,3,4,4,4,4,5,5,6,6,6,6,7,7,8,8,8,8,9,9,9,9,9,9,10,11,12,12,
%T A070549 12,12,12,12,13,13,13,13,14,15,16,16,16,16,17,17,17,17,17,17,18,18,18,
%U A070549 18,18,18,19,19,20,20,20,20,20,21,22,22,22,23,24,24,25,25,25,25,25,26
%N A070549 a(n) = Cardinality{ k in range 1 <= k <= n such that Moebius(k) = -1 }.
%C A070549 mu(k)=-1 if k is the product of an odd number of distinct primes. See A057627 for mu(k)=0.
%H A070549 Robert Israel, <a href="/A070549/b070549.txt">Table of n, a(n) for n = 1..10000</a>
%F A070549 From _Amiram Eldar_, Oct 01 2023: (Start)
%F A070549 a(n) = (A013928(n+1) - A002321(n))/2.
%F A070549 a(n) = A013928(n+1) - A070548(n).
%F A070549 a(n) = A070548(n) - A002321(n).
%F A070549 a(n) ~ (3/Pi^2) * n. (End)
%p A070549 ListTools:-PartialSums([seq(-min(numtheory:-mobius(n),0),n=1..100)]); # _Robert Israel_, Jan 08 2018
%t A070549 a[n_]:=Sum[Boole[MoebiusMu[k]==-1],{k,n}]; Array[a,78] (* _Stefano Spezia_, Jan 30 2023 *)
%o A070549 (PARI) for(n=1,150,print1(sum(i=1,n,if(moebius(i)+1,0,1)),","))
%Y A070549 Cf. A008683, A057627.
%Y A070549 Partial sums of A252233.
%Y A070549 Cf. A002321, A013928, A030059, A070548, A104141.
%K A070549 easy,nonn
%O A070549 1,3
%A A070549 _Benoit Cloitre_, May 02 2002