Three distinct numbers are selected randomly from the set \( (1, 2, 3, \ldots, 40) \). If the probability, that the selected numbers are in an increasing G.P., \( \frac{m}{n} \), \( \gcd(m,n)=1 \), then \( m+n \) is equal to __________.