Since the chapter is more theoretical, the assignment is not as much about the code, but more about determining the theoretical program complexity (in Big-O notation), testing the boundaries of the code (e.g. large numbers, negative numbers, etc.) and handling difficult cases (with large runtime, memory/stack issues, etc). If you run into some of the issues, comment the line of code that causes the error (add a “//” at the beginning of it so I can see that you called it correctly), output “ERROR” in the runtime output table and explain your decision and why (the program should not run for a certain N values) in the Complexity document.
Hint: Did you watch my 2 videos for the chapter?
Hint: Pick an integral data type that can is large enough to hold your series value. int can only hold values up to 2147483647. If you need to hold values larger than that (without your program crashing), you need to pick a larger type – the type with maximum value of 9223372036854775807.