OFFSET
1,2
COMMENTS
a(n) = number of points in [0, n*Pi/2] where cos(x) cos(x/2) ... cos(x/n) changes sign. - Robert Israel, Apr 29 2011
REFERENCES
Richard Crandall and Carl Pomerance, Prime numbers: a computational perspective. Springer-Verlag, New York, 2001, p. 52.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor( C * sqrt(n) ) +- 1, 0 with C = 1+1/sqrt(2) = 1.707...
a(n) = floor(sqrt(n)) + floor(sqrt(n/2)). (Crandall and Pomerance). - Franz Vrabec, Jun 24 2006
MATHEMATICA
Accumulate[If[OddQ[DivisorSigma[1, #]], 1, 0]&/@Range[90]] (* Harvey P. Dale, Jul 15 2012 *)
PROG
(PARI) for(n=1, 100, print1(sum(i=1, n, if(sigma(i)%2, 1, 0)), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 09 2002
EXTENSIONS
Offset corrected by Amiram Eldar, May 21 2022
STATUS
approved