OFFSET
0,3
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..1000
MAPLE
Digits := 100:
isA246389 := proc(k)
if evalf(sin(k)) >= 0 and evalf(sin(k+1)) >= 0 then
return true ;
else
return false ;
end if;
end proc:
A246389 := proc(n)
option remember ;
if n = 1 then
0;
else
for a from procname(n-1)+1 do
if isA246389(a) then
return a;
end if;
end do:
end if;
end proc:
seq(A246389(n), n=1..100) ; # assumes offset 1 R. J. Mathar, Jan 18 2024
MATHEMATICA
z = 400; f[x_] := Sin[x]
Select[Range[0, z], f[#]*f[# + 1] <= 0 &] (* A022844 *)
Select[Range[0, z], f[#] >= 0 && f[# + 1] <= 0 &] (* A246388 *)
Select[Range[0, z], f[#] <= 0 && f[# + 1] >= 0 &] (* A038130 *)
Select[Range[0, z], f[#]*f[# + 1] > 0 &] (* A054386 *)
Select[Range[0, z], f[#] >= 0 && f[# + 1] >= 0 &] (* A246389 *)
Select[Range[0, z], f[#] <= 0 && f[# + 1] <= 0 &] (* A246390 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 24 2014
STATUS
approved