See https://en.wikipedia.org/wiki/Big_O_notation