Learnings linear combination of integers can form k if k% gcd(elements) is zero. PRoblem : https://www.codechef.com/SEPT19A/problems/FUZZYLIN reference : https://stackoverflow.com/questions/47583925/how-to-check-if-an-integer-is-linear-combination-of-elements-in-an-array/47584726#47584726 constraint of equation ax2+2bxy+cy2>0 is b2-ac<0 PRoblem : https://www.codechef.com/SEPT19A/problems/LAPD sample learning explanation : PRoblem : reference :