OFFSET
1,1
MATHEMATICA
Select[Range[0, 300], Cos[# - 1] <= 0 && Cos[#] > 0 &] (* T. D. Noe, Mar 21 2013 *)
SequencePosition[Table[If[Cos[n]>0, 1, 0], {n, 400}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Dec 12 2018 *)
PROG
(PARI) lista(m) = {for (i=0, m, if ((cos(i-1)<=0) && (cos(i) > 0), print1(i, ", ")); ); } \\ Michel Marcus, Mar 21 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Term 1 removed (at the suggestion of Michel Marcus) by T. D. Noe, Mar 21 2013
STATUS
approved