Discussion about this post

User's avatar
Oliver Lopez's avatar

I didn't expect this problem to hide such a nice arithmetic sum. My approach is fundamentally similar to Kyle's, but takes a different approach to the proof, so I'll write my solution in the reply to this comment. I didn't make a full implementation (might come back to that later), but this should be implementable in just a few lines of code.

Edit: Added implementation to below comment if anybody is interested

Expand full comment
Kyle Humphrey's avatar

Definitely a great problem! It invokes good use of pattern analysis and mathematical thinking. I will write my solutions for both problems in reply to this comment.

--Do not look if you are still solving--

Expand full comment
4 more comments...

No posts