User Portlet User Portlet

Discussions
Permutations of [{4, 9, 2, 3, 6}] For example I know there are 120 possibilities. However I can get them to display. I just do not know enough coding and language to sum all the possible permutations. For example I want to add 49236 + 49263...