Hi there,
I am trying to solve the equation
[known value]=a*113+b*147+c*99+d*163+e*106+f*101+g*186+h*97+i*103
for a number of different [known values], where each variable is limited to its individual small set of positive integers up to 4, including 0.
However, I am unable to input this into Wolfram Alpha. I have tried
635=a*113+b*147+c*99+d*163+e*106+f*101+g*186+h*97+i*103 ; a=0,1,2 ; b=0,1 ; c=0,1 ; d=0,1 ; e=0,1 ; f=0,1,2,3,4 ; g=0,1,2,3 ; h=0,1 ; i=0,1
solve [635=a*113+b*147+c*99+d*163+e*106+f*101+g*186+h*97+i*103] over a=0,1,2 ; b=0,1 ; c=0,1 ; d=0,1 ; e=0,1 ; f=0,1,2,3,4 ; g=0,1,2,3 ; h=0,1 ; i=0,1
solve [635=a*113+b*147+c*99+d*163+e*106+f*101+g*186+h*97+i*103] over [a,b,c,d,e,f,g,h,i] where [a=0,1,2 ; b=0,1 ; c=0,1 ; d=0,1 ; e=0,1 ; f=0,1,2,3,4 ; g=0,1,2,3 ; h=0,1 ; i=0,1]
635=a*113+b*147+c*99+d*163+e*106+f*101+g*186+h*97+i*103 AND a=0,1,2 AND b=0,1AND c=0,1 AND d=0,1 AND e=0,1 AND f=0,1,2,3,4 AND g=0,1,2,3 AND h=0,1 AND i=0,1
635=a*113+b*147+c*99+d*163+e*106+f*101+g*186+h*97+i*103 ; a={0,1,2}...
...and a bunch of other guesses. Basically I need someone to tell me how to limit different variables to individual sets of numbers. Wolfram Alpha examples and Google are not of much help.
For those interested in the background: I work as a chemist synthesizing peptides. Sometimes in complicated sequences some amino acids won't give full conversion during coupling, leading to deletion sequences in the final product mixture. The number left of the = is the mass differential to the expected product, the variables' factors are masses of individual amino acid building blocks. By finding out which of the amino acids are missing, I'll be able to take measures to improve coupling yields in following attempts.