Hi Matsiv,
This is maybe not the most elegant solution, but with the power cosine series you can re-cast those into cosines of multiple angles suitable for a Fourier expansion.
This link is to Wikipedia, but I think the formulas are correct
https://en.wikipedia.org/wiki/List_of_trigonometric_identities#Power-reduction_formulaeSo if you had a list of cosine powers, you could work out the equivalent sum of multiple angle cosine functions, bearing in mind that you can use n=0 to just get a constant offset if you need one.
We unfortunately don't have a tabulated cosine potential, but I would think you should be able to reasonably close with a Fourier series. We do have a tablulated bond and non-bond pair potential, but I think that is all.
Cheers,
Brad.