%I A065357
%S A065357 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,
%T A065357 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
%U A065357 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
%V A065357 1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,-1,
1,1,-1,-1,-1,-1,
%W A065357 -1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,-1,-1,1,1,1,
1,1,1,-1,-1,-1,
%X A065357 -1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,-1,-1,-1,-1,-1,-1,1,1,1,1,1,1,1,1,-1,
-1,-1,-1,1,1
%N A065357 (-1)^pi(n) where pi(n) is the number of primes <= n.
%H A065357 Harry J. Smith, <a href="b065357.txt">Table of n, a(n) for n=0,...,1000</
a>
%o A065357 (PARI) { for (n=0, 1000, if (n, a=(-1)^primepi(n), a=1); write("b065357.txt",
n, " ", a) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net),
Sep 30 2009]
%Y A065357 Cf. A000720.
%Y A065357 Sequence in context: A143431 A158388 A162285 this_sequence A071935 A096809
A131561
%Y A065357 Adjacent sequences: A065354 A065355 A065356 this_sequence A065358 A065359
A065360
%K A065357 easy,sign
%O A065357 0,1
%A A065357 Jason Earls (zevi_35711(AT)yahoo.com), Oct 31 2001
|