Skip to main content
2 of 4
deleted 15 characters in body
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

Here's an alternative for you to consider:

mySum[p_List, iMin_] :=
 Tr @ MapIndexed[CenterDot[iMin - 1 + #2[[1]], #] &, p] //
  Row[{#, Times @@@ #}, "\[LongEqual]"] &

mySum[1/7 {3, 2, 0, 2}, 0]

enter image description here

Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k