Start row 0 with a single 1. To build the next row, place a 1 at each end, and fill each interior spot with the sum of the two numbers diagonally above it in the previous row. Row 3, for instance, comes from row 2 (1, 2, 1): the interior entries are 1+2=3 and 2+1=3, giving row 3 = 1, 3, 3, 1.