1819. Number of Different Subsequences GCDs
Last updated
Last updated
**Input:** nums = [6,10,3]
**Output:** 5
**Explanation:** The figure shows all the non-empty subsequences and their GCDs.
The different GCDs are 6, 10, 3, 2, and 1.**Input:** nums = [5,15,40,5,6]
**Output:** 7