Ask Your Question
0

How can I calculate this sum? (accept both sage(cocalc) and by hand)

asked 2018-08-13 18:24:41 +0100

pizza gravatar image

How can I calculate this sum?

1/1-(x+x^2)^2

  • This is the sum of infinity formula : a/1-r, while a=1 and r=(x+x^2)^2 Please also confirm if my formula is right.
edit retag flag offensive close merge delete

Comments

I'm afraid that your formula is not correct :

sage: var("r")
r
sage: (1/(1-r)).maxima_methods().powerseries(r,0)
sum(r^i1, i1, 0, +Infinity)

This can be shown in an elementary fashion by doing the "long division" of 1 by (1-r) "by hand"...

Could you restate your question a bit more clearly ? Xhat is summed, for what variable ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2018-08-13 19:19:46 +0100 )edit

What's your formula equal to???

Dox gravatar imageDox ( 2018-08-13 20:19:52 +0100 )edit

My formula is equal to a/(1-r), for that is for adding a certain sequence to infinity. So now I have to apply to 1/1-(x+x^2)^2.

pizza gravatar imagepizza ( 2018-08-15 08:47:17 +0100 )edit

Do you mean "That" when you type "Xhat"? (to Emmanuel Charpentier)

pizza gravatar imagepizza ( 2018-08-15 08:50:46 +0100 )edit

Anyone could answer me after all?

pizza gravatar imagepizza ( 2018-08-21 07:21:08 +0100 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-08-28 15:09:20 +0100

Dox gravatar image

I'm certain that the question is not correctly asked. Notice that in the sentence,

How can I calculate this sum?

1/1-(x+x^2)^2

there is no sum at all!

However, it seems that the OP wants to know if the expresion $$\frac{1}{1 - (x + x^2)^2} = \sum_{n = 0}^\infty (x + x^2)^{2n},$$ is valid.

If that is the question... I'd say yes, as long as $(x + x^2)^2 <1.$

edit flag offensive delete link more
0

answered 2018-08-28 17:37:27 +0100

slelievre gravatar image

updated 2018-08-28 18:21:58 +0100

It seems you want the power series expansion of $1 / (1 - (x + x^2)^2))$.

It is not clear if you want the first few terms of this power series, or a formula for the general term.

To get the first few terms, you can use the method .series().

sage: x = SR.var('x')
sage: f = 1/(1-(x+x^2)^2)
sage: f.series(x)
1 + 1*x^2 + 2*x^3 + 2*x^4 + 4*x^5 + 7*x^6 + 10*x^7 + 17*x^8 + 28*x^9 + 44*x^10
+ 72*x^11 + 117*x^12 + 188*x^13 + 305*x^14 + 494*x^15 + 798*x^16 + 1292*x^17
+ 2091*x^18 + 3382*x^19 + Order(x^20)

See also OEIS sequence A094686 for more on this series.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-08-13 18:24:41 +0100

Seen: 597 times

Last updated: Aug 28 '18