User Portlet User Portlet

Discussions
Thanks! That solved it. Best, Robert
Yes, that was really a significant difference. What is it that makes Fold so much faster than Count? I guess that both sweeps though the list once but for some reson Fold is much faster with adding and evaluating.
Thanks Daniel, it´s a nice solution. I like the way you separate the integration variables without the using a module. Your solution is faster than my change of variables by hand. I guess one should leave that to Mathematica :-) V[n_, r_] :=...