View Single Post
Old 2013-05-12, 21:15   #6
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

5,939 Posts
Default

Quote:
Originally Posted by Batalov View Post
Many solutions. Here's just a few:
v=[3,14,15];sum(k=1,#v,1/(73*v[k])+1/(137*v[k]))
v=[3,10,42,70];sum(k=1,#v,1/(73*v[k])+1/(137*v[k]))
v=[5,6,14,30];sum(k=1,#v,1/(73*v[k])+1/(137*v[k]))
v=[7,10,14,15,21,35,70];sum(k=1,#v,1/(73*v[k])+1/(137*v[k]))
Using (99/10001)/(1/73+1/137) = 33/70. Convenient, but not good if you're trying to minimize terms (as I was). Also interesting would be minimizing the maximum term, maximizing the minimum term, and minimizing the maximum ratio (or difference) between terms.
CRGreathouse is offline   Reply With Quote