My issue
The video solution guy didn’t explain WHY every other number other than 5 will be Yes. I knew this already while the contest was going on (by checking numbers manually whether they met the condition). But I wasn’t sure if this should be the case for every single number that is greater than 5. I am talking about proof of mathematical induction. How can I be 100% sure that any number greater than 5 is going to satisfy the condition? Am I supposed to approach this by mathematical induction? or is there any other method? How do expert coders approach this sort of problems?
Problem Link: https://www.codechef.com/problems/MAKENZERO