Fixed bug in k_n_m and put an attempt at an answer in question 3.5