I rearranged and simplified the formula for sum of elements of arithmetic sequence, and this simple formula came out.
One tricky part was determining how many odd numbers should be used in the sum, but as I remember it was also represented by some arithmetic sequence.
Now I don't remember the exact steps I have taken but if you want to understand it, you should look at it as arithmetic sequences.
After such decisions, you feel like an idiot...
This comment is hidden because it contains spoiler information about the solution
Nice, i have noticed same pattern from basics tests but i didnt even try it.I over engineered it as much i could haha :O
This comment is hidden because it contains spoiler information about the solution
I rearranged and simplified the formula for sum of elements of arithmetic sequence, and this simple formula came out.
One tricky part was determining how many odd numbers should be used in the sum, but as I remember it was also represented by some arithmetic sequence.
Now I don't remember the exact steps I have taken but if you want to understand it, you should look at it as arithmetic sequences.
How does it work?
where is Ruby translation?
This comment is hidden because it contains spoiler information about the solution
3 ** 5 = 243
243 is perfect power