Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How cam I simplify

Sum[UnitStep[-1 + n]/Sqrt[n!], {n, 0, ∞}]


$$\sum _{n=1}^{\infty } \frac{1}{\sqrt{n!}}$$

and then to

$$\sum _{n=0}^{\infty } \frac{1}{\sqrt{(n+1)!}}$$

I tried Simplify and FullSimplify, but neither of them worked.

share|improve this question
Try PiecewiseExpand on UnitStep[-1 + n]/Sqrt[n!] – Silvia Mar 4 '13 at 0:33
up vote 0 down vote accepted

Here is a brute force way, hope it will help.

changeindex = Sum[a_, b_] :> Module[{nstart, rule, body},
rule = 
 Reduce[And @@ 
   Thread[Flatten@Cases[a, UnitStep[x__] :> {x}, \[Infinity]] >= 
nstart = Max[rule /. _ >= x_ -> x, 0];
body = 
 Evaluate[Simplify[a /. b[[1]] -> b[[1]] + nstart, b[[1]] >= 0]];
Sum[Evaluate@body, Evaluate@b]

In[1]:= Sum[UnitStep[-1 + n]/Sqrt[n!], {n, 0, \[Infinity]}] /. changeindex

$$\sum _{n=0}^{\infty } \frac{1}{\sqrt{(1+n)!}}$$

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.