I don't see a picture, but I believe I know what you want.
7- horizontal in each row 5 - vertical in each column
The number of horizontal toothpicks =
(number of vertical toothpicks in each column + 1) * (number of horizontal toothpicks) =
( 6) * (7 ) = 42
The number of vertical toothpicks =
(number of horizontal toothpicks in each row + 1) * (number of vertical toothpicks) =
(8) * (5) = 40
So.....we need 42 + 40 = 82 toothpicks
Number of dots (nodes) =
(number of vertical toothpicks in each column + 1) * (number of horizontal toothpicks in each row + 1) = (6) * (8) = 48 dots (nodes)
With 10 horizontal and 20 wertical
# of horizontal toothpicks = (21)* 10 = 210
# of vertical toothpicks = (11) * 20 = 220
# of total toothpicks = 210 + 220 = 430
# of dots (nodes) = (21) * (11) = 231
We can extend this idea to any horizontal/vertical toothpick array.
Let h be the number of horizontal toothpicks and v the number of vertical
# of horizontal toothpicks = (v + 1) * h
# of vertical toothpicks = (h + 1) * v
# of total toothpicks = (v + 1) * h + (h + 1) * v
# of dots (nodal points) = (v + 1) * (h + 1)
