Easy to solve by brute force, also learned finite differences method and the sum of squares formula derived by that method