Based on the definition of "big-O" notation, we have 6n2+18 ≤ cn2. Note that as long as c>6, we can always find out N such that 6n2+18 ≤ cn2 when n ≥ N. Now choose c=7, then we can choose N=5 since
    6n2+18 ≤ 7n2
    6 + 18/n2 ≤ 7
    18/n2 ≤ 1
    n ≥ 5