The Constant Function
The simples function we can think of is the constant function. This is the function, f(n)=c, for some fixed c, such as c = 5, c=27 or c = 2¹⁰. That is for any argument n the constant function f(n) assigns the value c. In other words, it does not matter what the value of n is; f(n) will always be equal…