Gathering initial data
I took initially a brute force approach to see the possible results for a range between 3 and 12 for N (image attached)
The formula
After analyzing the results I began working on a formula that could give the answer on all possible values for N (image attached)
Testing
With the formula in hand it was time to test the results with a broader range of N values. For this step I used Excel.
_ It was a very interesting challenge, I hope to hear again from you _
Thanks!
Built With
- brain
- excel
- paper
- pen
Log in or sign up for Devpost to join the conversation.