S
Shankley
Basically, I need to do a Sum of the Squares of the first 'n' Natural
Numbers. Something like:
function_name(n)
If 'n' is 8 say, then the function would return 204.
Thats 1*1 + 2*2 + 3*3 + 4*4 + 5*5 + 6*6 + 7*7 + 8*8
Likewise if 'n' is 6 say, then the function would return 91!
Or, if no funtion possible, is it possible to do the calculation with
conventional methods?
Thanks,
Shankley
-
FunaxyrlRap-nocnglnubbqbgpbz
Numbers. Something like:
function_name(n)
If 'n' is 8 say, then the function would return 204.
Thats 1*1 + 2*2 + 3*3 + 4*4 + 5*5 + 6*6 + 7*7 + 8*8
Likewise if 'n' is 6 say, then the function would return 91!
Or, if no funtion possible, is it possible to do the calculation with
conventional methods?
Thanks,
Shankley
-
FunaxyrlRap-nocnglnubbqbgpbz