OFFSET
1,2
COMMENTS
Apart from the first term this is also the sequence ceiling(circumference of a circle of radius n) = ceiling(2*Pi*n), n >= 1.- Mohammad K. Azarian, Feb 29 2008, Aug 01 2009
Bisection of A004084. - Michel Marcus, Mar 21 2013
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Join[{1}, Transpose[SequencePosition[Table[If[Sin[n]<=0, 1, 0], {n, 300}], {1, 0}]][[2]]] (* The program uses the SequencePosition function from Mathematica version 10 *) (* Harvey P. Dale, Apr 12 2016 *)
PROG
(PARI) lista(m) = {for (i=1, m, if ((sin(i-1)<=0) && (sin(i) > 0), print1(i, ", ")); ); } \\ Michel Marcus, Mar 21 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved