Math, asked by mjedhva9198, 1 year ago

how to find sum of subsequence * gcd of subsequence of all k length array

Answers

Answered by AryanTennyson
0
Input : arr[] = [2, 1, 4, 6] k = 3 Output : 2 GCD of [2, 4, 6] is 2 Input : arr[] = [1, 2, 3] k = 3 Output : 1 GCD of [1, 2, 3] is 1
Similar questions