This is an Advanced Algorithm assignment, it involves mathematics and Python Pro

This is an Advanced Algorithm assignment, it involves mathematics and Python Programming.
The following questions are mathematics:
Q1-1 a&b
Q1-2 a&b
The following questions are to be proven mathematicaly:
Q1-4
Q1-5
The following questions should be completed using Python programming with the aim of the template that I have provided:
Q1-3 a&b&c