OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..2000
MATHEMATICA
z = 500; f[x_] := f[x] = Sec[x];
Select[Range[0, z], f[#] < f[# + 1] &] (* A246404 *)
Select[Range[0, z], f[#] > f[# + 1] < f[# + 2] &] (* A246405 *)
Select[Range[0, z], f[#] > f[# + 1] > f[# + 2] < f[# + 3] &] (* A246406 *)
Position[Partition[Sec[Range[2100]], 4, 1], _?(#[[1]]>#[[2]]>#[[3]]< #[[4]]&), 1, Heads->False]//Flatten (* Harvey P. Dale, Mar 10 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 25 2014
STATUS
approved