Inverse distributions and independent gamma-distributed products of random variables