Sums

Consecutive Sums

Odd Numbers

sumodd[n_]:=(∑_(k=1)^n)(2 k -1)

sumodd[1]
sumodd[2]
sumodd[3]
sumodd[4]
sumodd[10]

Cubes

sumcubes[n_]:=(∑_(k=1)^n) (k^3)

sumcubes[1]
sumcubes[2]
sumcubes[3]
sumcubes[4]
sumcubes[10]