# To record some strange tricks

## Python

 1 2 3 4 5  for i in range(2,101): for j in range(100): ij = i**j if math.log(ij, i) != j: print(i,'\t',j) 

• math.log(x[, base])

With one argument, return the natural logarithm of x (to base e). With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base).

 1  math.log(x[,base]) = log(x) / log(base)