A Recursive Sum

I was playing around with recursions and I found something interesting which I would like to share with you guys. Do give it a try.

We recursively define an=an2na_n=\dfrac{a_{n-2}}{n}. Also, a0=a1=1a_0=a_1=1. Prove that n=0an=eπ2erf(12)+e\displaystyle\sum_{n=0}^{\infty}a_n=\sqrt{\dfrac{e\pi}{2}}\mathrm{erf}\left(\dfrac{1}{\sqrt{2}}\right)+\sqrt{e}

#Calculus #RecurrenceRelations #Summation #DifferentialEquations

Note by Pratik Shastri
6 years, 3 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

My method is the method of generating functions :

y=f(x)=n=0anxn\displaystyle y=f(x)=\sum _{ n=0 }^{ \infty }{ { a }_{ n }{ x }^{ n } }

Remember our recurrence relation is :

(n+2)an+2=an \displaystyle (n+2){ a }_{ n+2 }={ a }_{ n }

Also f(x)f(x) can be written as :

f(x)=a0+a1x+n=2anxn \displaystyle f(x) = { a }_{ 0 }+{ a }_{ 1 }x+\sum _{ n=2 }^{ \infty }{ { a }_{ n }{ x }^{ n } }

Since a0=a1=1 {a}_{0} = {a}_{1} =1

f(x)=1+x+n=0an+2xn+2 \displaystyle \Rightarrow f(x) = 1+x+\sum _{ n=0 }^{ \infty }{ { a }_{ n+2 }{ x }^{ n+2 } }

Differentiating both sides with respect to xx we have :

f(x)=1+n=0(n+2)an+2xn+1 \displaystyle f'(x)=1+\sum _{ n=0 }^{ \infty }{ (n+2){ a }_{ n+2 }{ x }^{ n+1 } }

Using our recurrence relation we have :

f(x)=1+n=0anxn+1 \displaystyle f'(x)=1+\sum _{ n=0 }^{ \infty }{ { a }_{ n }{ x }^{ n+1 } }

f(x)=1+xf(x) \displaystyle \Rightarrow f'(x)=1+xf(x)

Now it's a linear differential equation and it's solution is as follows :

yex2/2=0xet2/2dt+C\displaystyle y{ e }^{ -{ x }^{ 2 }/2 }=\int _{ 0 }^{ x }{ { e }^{ -{ t }^{ 2 }/2 }dt } + C

Now at x=0,y=1x=0 , y=1 hence it comes out to be C=1 C=1

Finally y=f(x)=ex2/20xet2/2dt+ex2/2 \displaystyle y = f(x) ={ e }^{ { x }^{ 2 }/2 }\int _{ 0 }^{ x }{ { e }^{ -{ t }^{ 2 }/2 }dt } +{ e }^{ { x }^{ 2 }/2 }

To get the value of summation simply put x=1x=1 to get :

n=0an=e01et2/2dt+e \displaystyle \sum _{ n=0 }^{ \infty }{ { a }_{ n } } =\sqrt { e } \int _{ 0 }^{ 1 }{ { e }^{ -{ t }^{ 2 }/2 }dt } +\sqrt { e }

With a little change of variables we have :

n=0an=2e01/2ex2dx+e \displaystyle \sum _{ n=0 }^{ \infty }{ { a }_{ n } } =\sqrt { 2e } \int _{ 0 }^{ 1/\sqrt { 2 } }{ { e }^{ -{ x }^{ 2 } }dx } +\sqrt { e }

Using the defintion of error function we have finally :

0zex2dx=π2erf(z)\displaystyle \int _{ 0 }^{z}{ { e }^{ -{ x }^{ 2 } }dx } = \frac { \sqrt { \pi } }{ 2 } \mathrm{erf}(z)

n=0an=eπ2erf(12)+e \displaystyle \sum _{ n=0 }^{ \infty }{ { a }_{ n } } =\sqrt { \frac { e\pi }{ 2 } } \mathrm{erf}(\frac { 1 }{ \sqrt { 2 } } )+\sqrt { e }

Ronak Agarwal - 6 years, 3 months ago

Log in to reply

Cool! That's exactly what I did too! Ditto! +1!

Pratik Shastri - 6 years, 3 months ago

Nice ! +1

A Former Brilliant Member - 6 years, 3 months ago

Wonder if there is another way to get to the sum..

Pratik Shastri - 6 years, 3 months ago

Log in to reply

There is an another way you can solve for the general term and then sum can be calculated very easily.

Ronak Agarwal - 6 years, 3 months ago

Log in to reply

@Ronak Agarwal The general term looks horrid. How do we sum it?

Pratik Shastri - 6 years, 3 months ago

Excellent solution as usual. And now thanks to You I learned how to solve infinite sums using generating functions.

Oussama Boussif - 6 years, 3 months ago
×

Problem Loading...

Note Loading...

Set Loading...