User blog comment:Hyp cos/R function II/@comment-2033667-20150408132907/@comment-2033667-20150408153832

Hell, you can even completely get rid of numeric terms by having 0 be an empty string, and replacing k with k copies of "{}". This would significantly simplify your notation.