This is caused by 1/3 and 1/5 being inexact (since they are Float64s and slightly less than the true values. You probably want something like ceil((32)^(BigFloat(1)/5)) which will make sure your fractions are computed as BigFloats. Note, you could also write BigFloat(1) as big"1" which imo is more readable.
4 Likes