We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The sequence forms arithmetic progression, you need just take into account 'm'. To find the sum of the first n terms in an Arithmetic sequence, you need to solve Quadratic equation.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
The sequence forms arithmetic progression, you need just take into account 'm'. To find the sum of the first n terms in an Arithmetic sequence, you need to solve Quadratic equation.