Max Value of a_n: Find n for Maximum Value

  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    Maximum Value
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
29 replies · 4K views
Saitama
Messages
4,244
Reaction score
93

Homework Statement


(These may not be the exact wordings as it was asked by my friend and I do not have the exact question)
Find the value of n for which a_n is maximum where
[tex]a_n=\frac{1000^n}{n!}[/tex]

(Ans: n=999)

Homework Equations





The Attempt at a Solution


I don't think using calculus in this type of question would help so I have put it in Precalc section. I am clueless here, how should I begin with this.
 
Physics news on Phys.org
I took log of both sides and then used the Stirling Approximation.

Then differentiate with respect to n and set that to zero.

I get n=1000 (but there must be some ugliness because of the discontinuity etc.)
 
CompuChip said:
You could try looking at [tex]\frac{a_{n + 1}}{a_n}[/tex]

This is equal to ##\frac{1000}{n+1}##.
But I am still clueless.
 
Pranav-Arora said:
This is equal to ##\frac{1000}{n+1}##.
But I am still clueless.

If the series in increasing what's the value of the ratio. If it is decreasing what's the value of the ratio?

@CompuChip: Yes, that's cleaner.
 
In any case shouldn't 999 and 1000 both be acceptable answers?
 
rollingstein said:
If the series in increasing what's the value of the ratio. If it is decreasing what's the value of the ratio?

If the series increases,its greater than 1 and less than 1 if it decreases.
 
Pranav-Arora said:
If the series increases,its greater than 1 and less than 1 if it decreases.

You still don't see the answer?
 
rollingstein said:
You still don't see the answer?

Honestly, no.
 
Can you tell me to which area of mathematics these type of questions belong?
 
@CompuChip: Sorry if this is annoying you but I really have no idea.
 
Look at the bit that I quoted: you say that if the series is increasing, then the ratio between consecutive elements is > 1. If it is decreasing, then the ratio is < 1.

Now imagine a series with a maximum. Draw one on a piece of paper, if it helps. What can you say about the increasing / decreasing on either side of the maximum? What does that tell you about the ratio "at" the maximum?
 
Before the maximum, series increases. After that it decreases.
 
But wait!

[itex]\frac{1000^{999.5}}{999.5!}[/itex]

is larger than either of those...

And now we go to scary places.
 
CompuChip said:
So before the maximum [itex]a_{n+1}/a_n > 1[/itex] and after that [itex]a_{n+1}/a_n < 1[/itex]. What happens in between?

Equal to 1. Therefore n=999.

I plugged a_n in wolframalpha with n=999 and n=1000. The results are same but how can I show that? :confused:

Opus_723 said:
But wait!

[itex]\frac{1000^{999.5}}{999.5!}[/itex]

is larger than either of those...

And now we go to scary places.

As I do not have the exact question, it should be mentioned that n is an integer.
 
Pranav-Arora said:
Equal to 1. Therefore n=999.

I plugged a_n in wolframalpha with n=999 and n=1000. The results are same but how can I show that? :confused:

n=999 gives 1000^999/999!. n=1000 gives 1000^1000/1000!. 1000!=999!*1000.
 
Dick said:
n=999 gives 1000^999/999!. n=1000 gives 1000^1000/1000!. 1000!=999!*1000.

Thanks Dick! :smile:
 
CompuChip said:
You could try looking at [tex]\frac{a_{n + 1}}{a_n}[/tex]

I still want to ask one question. How you came up with this or how did this pop up in your mind? I am interested to know how you think about these type of problems. :smile:
 
Pranav-Arora said:
Equal to 1. Therefore n=999.

I plugged a_n in wolframalpha with n=999 and n=1000. The results are same but how can I show that? :confused:



As I do not have the exact question, it should be mentioned that n is an integer.

You already have all you need: you have a_1000/a_999 = 1, so a_999 = a_1000 !
 
You had already shown that
[tex]\frac{a_{n+1}}{a_n} = \frac{1000}{n + 1}[/tex]
If you set that equal to 1, you can solve for n quite straightforwardly.

I guess this is one of those things where a bit of experience helps... I was initially looking at the limit for [itex]n \to \infty[/itex] and thought of the ratio test. Then I noticed that in the ratio the factorial disappeared, and somehow made the connection to your actual question.
 
CompuChip said:
You had already shown that
[tex]\frac{a_{n+1}}{a_n} = \frac{1000}{n + 1}[/tex]
If you set that equal to 1, you can solve for n quite straightforwardly.

I guess this is one of those things where a bit of experience helps... I was initially looking at the limit for [itex]n \to \infty[/itex] and thought of the ratio test. Then I noticed that in the ratio the factorial disappeared, and somehow made the connection to your actual question.

Thanks for the insight CompuChip! :smile:
 
If an is the greatest, then

[itex]\frac{a_{n+1}}{an}\leq 1[/itex]

and

[itex]\frac{a_{n-1}}{an}\leq 1[/itex] .[itex]\frac{n}{1000}\leq 1[/itex], [itex]\frac{1000}{n+1}\leq 1[/itex],

that is

[itex]999 \leq n \leq 1000[/itex].

The 999-th term is he same as the 1000th, as Dick pointed out. There are two solutions, both 999 and 1000.

ehild
 
ehild said:
If an is the greatest, then

[itex]\frac{a_{n+1}}{an}\leq 1[/itex]

and

[itex]\frac{a_{n-1}}{an}\leq 1[/itex] .


[itex]\frac{n}{1000}\leq 1[/itex], [itex]\frac{1000}{n+1}\leq 1[/itex],

that is

[itex]999 \leq n \leq 1000[/itex].

The 999-th term is he same as the 1000th, as Dick pointed out. There are two solutions, both 999 and 1000.

ehild

Thanks ehild! :smile:

Posts like this always help when I look back at the old threads I have posted. :)
 
ehild said:
The 999-th term is he same as the 1000th, as Dick pointed out.
ehild

In all fairness, SammyS pointed that out. I just chirped in with the reason why it was true. I was late to the game.