Homework 5.4.4

The amount of homework we get seems to increase at O(n²) or even more... not very promising.