Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11007 > unrolled thread

Bug in infinite sum

Started by"Dr. Wolfgang Hintze" <weh@snafu.de>
First post2012-07-21 03:44 +0000
Last post2012-07-22 08:33 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Bug in infinite sum "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-07-21 03:44 +0000
    Re: Bug in infinite sum Peter Pein <petsie@dordos.net> - 2012-07-22 08:33 +0000

#11007 — Bug in infinite sum

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2012-07-21 03:44 +0000
SubjectBug in infinite sum
Message-ID<jud8jf$j2m$1@smc.vnet.net>
Consider this nice sum

s[x_] = Sum[Binomial[x, k], {k, 0, Infinity}]
2^x

and that, (with the odd terms only)

u[x_] = Sum[Binomial[x, 2*k + 1], {k, 0, Infinity}]
2^(-1 + x)

But now the even terms only ... and the surprise:
g[x_] = Sum[Binomial[x, 2*k], {k, 0, Infinity}]

(Sqrt[Pi]*Gamma[1 + x]*GegenbauerC[x, 1/2 - x, 1])/
  (2^x*Gamma[1/2 + x])

looks complicated, but let's see
FullSimplify[g[x], x > 0]

2^x*Cos[Pi*x]

much simpler, but definitely wrong (giving e.g. 0 for x=1/2)
Of course g should be s - u = 2^x -1/2 2^s = 1/2 2^s.

Best regards,
Wolfgang

[toc] | [next] | [standalone]


#11030

FromPeter Pein <petsie@dordos.net>
Date2012-07-22 08:33 +0000
Message-ID<jugdte$eqa$1@smc.vnet.net>
In reply to#11007
Am 21.07.2012 05:44, schrieb Dr. Wolfgang Hintze:
> Consider this nice sum
>
> s[x_] = Sum[Binomial[x, k], {k, 0, Infinity}]
> 2^x
>
> and that, (with the odd terms only)
>
> u[x_] = Sum[Binomial[x, 2*k + 1], {k, 0, Infinity}]
> 2^(-1 + x)
>
> But now the even terms only ... and the surprise:
> g[x_] = Sum[Binomial[x, 2*k], {k, 0, Infinity}]
>
> (Sqrt[Pi]*Gamma[1 + x]*GegenbauerC[x, 1/2 - x, 1])/
>    (2^x*Gamma[1/2 + x])
>
> looks complicated, but let's see
> FullSimplify[g[x], x > 0]
>
> 2^x*Cos[Pi*x]
>
> much simpler, but definitely wrong (giving e.g. 0 for x=1/2)
> Of course g should be s - u = 2^x -1/2 2^s = 1/2 2^s.
>
> Best regards,
> Wolfgang
>

Hmm on version 8 (Windows 64-bit) I get:

  Sum[Binomial[x, 2*k], {k, 0, Infinity}]
    2^(-1+x)

and the same result for

  Sum[Binomial[x, k], {k, 0, Infinity, 2}]

as it should be.

Peter

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web