in reply to Group array in threes

See Summing Up Array Elements By Group. It's the same problem (just with a slightly different endgame).