OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
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 *)
Flatten[Position[Partition[Sec[Range[0, 150]], 2, 1], _?(#[[1]]<#[[2]]&), 1, Heads->False]]-1 (* Harvey P. Dale, May 09 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 25 2014
STATUS
approved