drsarao
Well-known Member
- Joined
- Sep 9, 2009
- Messages
- 1,146
- Office Version
- 2007
- Platform
- Windows
Taurean,
Thanks for opening my eyes!
Fazza's solution is really elegant.
I 'thought' it was a 'series' solution with n expressions. And never even checked it out.
Now, I tried (honest) but could not figure it out. (Algebra is not a very strong point for me!)
I would be delighted if Fazza can throw some light. Thanks.
Array solution: would multiply each integer upto (and including) the given number X to itself. Sum all and then multiply with 6.
Fazza's solution: X*(X+1)*(2X+1) Can't wrap my brain around it.
What would be the solution if there was no multiplication with 6 at the end?
Thanks for opening my eyes!
Fazza's solution is really elegant.
I 'thought' it was a 'series' solution with n expressions. And never even checked it out.
Now, I tried (honest) but could not figure it out. (Algebra is not a very strong point for me!)
I would be delighted if Fazza can throw some light. Thanks.
Array solution: would multiply each integer upto (and including) the given number X to itself. Sum all and then multiply with 6.
Fazza's solution: X*(X+1)*(2X+1) Can't wrap my brain around it.
What would be the solution if there was no multiplication with 6 at the end?