Following operations can be done in constant time:
- Multiplying two bits
- Adding two bits

Need to add binary strings, and each binary string takes time to compute. Hence the total running time is
Lets find about squaring
time needed to square an -bit number. can be upper bounded by

- Compute
- Compute
- Obtain by computing and subtracting and