Need help writing more efficient code (total newbie)

its not...
my mistake...
was trying to use a loop to make this work... but i abandoned it and came here...
the video was captured with all of the +i's taken out.

im really trying to follow this skeleton code, but I'm lost...are we dividing arrays in that first line...
sigh...i have a long way to go