Let M = sum of the cubes of the first 2024 odd numbers
and N = sum of the cubes of the first 2023 even numbers.
Find M-N
(In reply to
Possible Solution by broll)
M=sum([1:2:4047].^3)
N=sum([2:2:4046].^3)
M-N
produces
>> evenOddCrossedDifference
M =
33563865750976
N =
33530712161408
ans =
33153589568
|
Posted by Charlie
on 2023-11-03 08:02:17 |