On the Calculation of the Interaction Potential in Multiatomic Systems