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

It is simple for Mathematica to find an asymptotic expansion for $\frac{1}{-1+p}$ as $p \rightarrow \infty$. However, if we want to restrict $p$ to be an integer and also include some terms that simplify for integer p (but not generally) then Series by itself will no longer do the job (without some prodding, I expect).

Is there a simple way to use Series to find the asymptotic expansion of $$\frac{1}{(-1)^p+p}$$ as $p \rightarrow \infty$, assuming integer $p$?

share|improve this question
up vote 2 down vote accepted

Simplicity is arguably in the eye of the beholder, but the following code gets you closer to $\sum_{k=0}^{n}(-1)^k p^{-(k+1)}$

ps = Series[1/((-1)^p + p), {p, \[Infinity], 1}];
psEven = Simplify[ps,  Assumptions -> p \[Element] Integers \[And] Mod[p, 2] == 0]
psOdd = Simplify[ps,  Assumptions -> p \[Element] Integers \[And] Mod[p, 2] == 1]

for either even p or odd p.

share|improve this answer
Using Simplify as a post-processor to Series seems like a good way to go about this. – Daniel Lichtblau Jan 31 '14 at 16:28

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.