By adding another row of dots and counting all the dots we can find the next number of the sequence.
i.e. "count all the rows before, and add a new row".
The algorithm could look like:
Code:
BEGIN
total = 0
FOR row = 1 TO 10 STEP 1
total = total + row
Display total
NEXT i
END
Specifically, look at this line:
In total + row, total represents the sum of all the rows before, and row is the next row to be added.