The Answer is Not 196Number Theory Level 5
Find the sum of all positive integers \(n\) such that
for some non-square positive integer \(m\).
I'd just like to say that there are some really neat approaches and I encourage you to post a solution. I'd also really like to see a computer science based solution. Good luck! :D