exer 1.45

was a bit tough until i did it part by part and then looked up how
to use ln to compute log2

log2(x) = (ln(x)/ln(2))
modifications after seeing Bill-the-Lizard's answer and realizing mine was more complicated than needed.