Problem 1819 · Hard

Number of Different Subsequences GCDs

A value g is a subsequence gcd exactly when the gcd of all array values that are multiples of g equals g.

Open the interactive visualisation