ROSECODE 561
Least number divisible by each number of a sequence
Given two integers
- Each number in the sequence is a natural number.
- The least number divisible by each number of the sequence is
. - The length of the sequence is
. - Any two adjacent terms in the sequence are co-prime.
For example,
You are given
Find