Thirty First Night 2023 | Math Problem

Click here to read the complete problem statement.