# Wrong result for very simple series with Floor

**URL:** <https://community.wolfram.com/t/wrong-result-for-very-simple-series-with-floor/685>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [October 9, 2013, 11:02pm UTC](https://community.wolfram.com/t/wrong-result-for-very-simple-series-with-floor/685 "2013-10-09T23:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marioweitzerat](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@marioweitzerat](https://community.wolfram.com/u/marioweitzerat)\
**Post date:** [October 9, 2013, 11:02pm UTC](https://community.wolfram.com/t/wrong-result-for-very-simple-series-with-floor/685/1 "2013-10-09T23:02:52Z")

</div>

On Mathematica 8 the following sum

```auto
Sum[Floor[2/2^p], {p, 1, Infinity}]

```

evaluates to 0, which is obviously wrong.

```auto
Sum[Floor[2/2^p], {p, 1, 10}]

```

evaluates correctly to 1.

---

<div class="post-metadata">

**Author:** ![jari](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jari/32/2115_2.png) [@jari](https://community.wolfram.com/u/jari)\
**Post date:** [October 10, 2013, 3:38pm UTC](https://community.wolfram.com/t/wrong-result-for-very-simple-series-with-floor/685/2 "2013-10-10T15:38:06Z")

</div>

Seems like a bug to me.

```auto
Sum[Floor[2^-p], {p, 0, Infinity}]

(* 0 *)

Sum[Floor[2^-p], {p, #, Infinity}] & /@ {-1, 0, 1}

(* {3, 0, 0} *)

```

Strangely enough, this works:

```auto
Sum[Floor[2^-p], {p, {-1, 0, 1}, Infinity}]

(* {3, 1, 0} *)

```

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [October 10, 2013, 4:41pm UTC](https://community.wolfram.com/t/wrong-result-for-very-simple-series-with-floor/685/3 "2013-10-10T16:41:10Z")

</div>

Thank you for pointing this out.

Reports of incorrect behavior are best handled by sending the  
information to [support@wolfram.com](mailto:support@wolfram.com) or using the feedback form at  
[Contact Wolfram Support by Email or Phone](http://www.wolfram.com/support/contact/email/).

This has been passed on to the Technical Support group for  
processing.
