If the bases are same and variables are adding , then it becomes like this
^ represent power
X^N + X^N = 2X^N not X^2N
like we take common
X^N(1 + 1) = 2X^N
but in the case 2^N + 2^N = 2^(N+1)
if we take common
2^N(1 + 1) = (2)2^N
How it is becoming
2^(N+1)
I read this formula in a book Data Structures and algorithm analysis in Java 3rd edition. I am confuse.
Thanks