Is their a formula to calculate the combination of two patterns?: Lets say I have rows of lightbulbs, a pattern representes the space between two turned-on lightbulbs. Easier to explain with an example:
Pattern 1: 4, 3
Pattern 2: 3
The meaning of the patterns:
lightbulb on: |
lightbulb off: -
Pattern 1: |---|--|---|--|---|--|---|--|---|--|---|--|---|--|---|--|---|--|
Pattern 2: |--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|
Combined : |-----------------|--|-----------------|--|-----------------|--|
New Combined Pattern: 18, 3