In the process of finding C and k for Big-O notation (another subject entirely, stupid things), we end up having to do this thing:
floor(5x)/x
And on a related problem:
ceiling(x/4)/x
So… how do you do that? My first inclination was to pretend the floor and ceiling parts weren’t there, but my first inclinations about math tend to always be horribly, horribly wrong.
Man, that is ugly. Do you actually need to simplify that function, or do you just need a limit? Because the things coverge to limits (that are easy to find by ignoring the floor/ceiling parts).
Meh. Your k just needs to be large enough, and your C just needs to be small enough. What you should do is bound flo(x) by x-1<= flo(x) <= x, and similarly bound ceil(x). That should be good enough to do your analysis. The easy thing to do is just make k way too big and C way too small. Who cares?