Observe the patterns of digits made from line segments of equal length

Observe the patterns of digits made from line segments of equal length. You will find such segmented digits on the display of electronic watches or calculators.
image
If the number of digits formed is taken to be n, the number of segments required to form n digits is given by the algebraic expression appearing on the right of each pattern.
How many segments are required to form 5, 10, 100 digits of the kind
image