code: def bestExponent(self, seriesLenght):
          '''
          :type seriesLenght: int
          :rtype: int
          '''
          i = 0
          cont = True
          while(cont):
              if(int(seriesLenght/int(math.pow(2, i))) <= 1):
                  cont = False
              else:
                  i += 1
          return int(i-1f bestExponent(self, seriesLenght):
          '''
          :type seriesLenght: int
          :rtype: int
          '''
          i = 0
          cont = True
          while(cont):
              if(int(seriesLenght/int(math.pow(2, i))) <= 1):
                  cont = False
              else:
                  i += 1
          return int(i-1)
docs: :type seriesLenght: int
          :rtype: int