I'm looking for a simple example function, f(n), that is Big-O of some other function, g(n), but is not Little-o of g(n). In other words, some f(n) such that f(n) is O(g(n)), but not o(g(n)).
The simplest case I can think of is f(n) = n, g(n) = n. f(n) is clearly O(g(n)). We learned in class that one definition of little-o notation is whether f(n)/g(n) as n --> infinity, goes to 0. In this case, f(n)/g(n) as n goes to infinity approaches 1, therefore f(n) is not o(g(n)).
Is this logic correct? Am I missing something?