def alg 3(n) x = 0 i = 1 while i < n: for j in range(0, n**3,n*3): x += 1 i *= 3 return x
I don\'t really get the Bi