OFFSET
1,1
COMMENTS
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
z = 500; f[x_] := f[x] = Cos[2 x]; t = Range[1, z];
Select[t, f[#] < f[# + 1] &] (* A327138 *)
Select[t, f[#] > f[# + 1] < f[# + 2] &] (* A327139 *)
Select[t, f[#] > f[# + 1] > f[# + 2] < f[# + 3] &] (* A327140 *)
Position[Partition[Cos[2Range[200]], 2, 1], _?(#[[1]]<#[[2]]&), 1, Heads->False]//Flatten (* Harvey P. Dale, Oct 21 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 23 2019
STATUS
approved