by Sadgrinner · 11y ago · 0 comments
The sequence is not monotonically increasing. It's strictly increasing. If you test [1, 1, 2] or [1, 1, 1] or [1, 2, 2], you'll get "No" answers even though those sequences are monotonically increasing.
[1,1,2], [1,1,1], and [1,2,2] are not monotone increasing. They're also not monotonic functions.
"A function is called monotonically increasing (also increasing or non-decreasing), if for all x and y such that x <= y one has f(x) <= f(y).
https://en.wikipedia.org/wiki/Monotonic_function#/media/File...
This definition allows for 'flatness' in a graph, since the derivative does not change sign.
Or, from http://www-history.mcs.st-and.ac.uk/~john/analysis/Lectures/... :
A sequence f(n) is monotonic increasing if f(n+1) ≥ f(n) for all n ∈ N.
The sequence is *strictly* monotonic increasing if we have > in the definition instead of ≥.