Ad
  • Custom User Avatar

    Well, you'll find that the answers can be calculated by dividing n by 2 until it's <= 2. Dividing by 2 constantly is the opposite of multiplying by 2 constantly which is just n^2. Opposite of exponential is logarithm, so log 2.

    The rule is called base change rule(since you can change the base, look it up if you're confused about that part). I didn't know I could use log2() instead so I went with this.