Find number of dissimilar terms in the expansion $\displaystyle (1+ax^p+bx^q+cx^r)^n$ where p,q,r are different integers and n is a non-negative integers.(p,q,r may be either positive or negative and a,b,c are any real numbers)

Does there exist a general formula?