Repository: sympy/sympy

Issue:
(1/(x**-2 + x**-3)).series(x, 0) gives wrong result
`(1/(x**-2 + x**-3)).series(x, 0)` returns `x**3 - x**4 + O(x**6)` which is incorrect. Wolfram Alpha gives `x**3 - x**4 + x**5 - x**6 + x**7 + O(x**8)`. 

Discussion:

Patch:
diff --git a/sympy/core/power.py b/sympy/core/power.py
index 3eaa577d84..d329846b7b 100644
--- a/sympy/core/power.py
+++ b/sympy/core/power.py
@@ -1196,7 +1196,7 @@ def _eval_nseries(self, x, n, logx):
                     dn = 0
 
                 terms = [1/prefactor]
-                for m in range(1, ceiling((n - dn)/l*cf)):
+                for m in range(1, ceiling((n - dn + 1)/l*cf)):
                     new_term = terms[-1]*(-rest)
                     if new_term.is_Pow:
                         new_term = new_term._eval_expand_multinomial(


Test patch:
diff --git a/sympy/series/tests/test_series.py b/sympy/series/tests/test_series.py
index 5547f436e0..def2ac9019 100644
--- a/sympy/series/tests/test_series.py
+++ b/sympy/series/tests/test_series.py
@@ -153,3 +153,6 @@ def test_exp_product_positive_factors():
 
 def test_issue_8805():
     assert series(1, n=8) == 1
+
+def test_issue_10761():
+    assert series(1/(x**-2 + x**-3), x, 0) == x**3 - x**4 + x**5 + O(x**6)