Various math problems I solved due to my random insomnia during night time