Max Value of a_n: Find n for Maximum Value

In summary, Homework Equations asks what is the value of n for which a_n is maximum. Using the Stirling approximation and differentiating with respect to n, one finds that n=1000. If the series is increasing, then the ratio between consecutive elements is greater than 1, while if it is decreasing, then the ratio is less than 1. If the series reaches a maximum, the value of the ratio is 1.
  • #1
Saitama
4,243
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
  • #2
You could try looking at [tex]\frac{a_{n + 1}}{a_n}[/tex]
 
  • #3
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.)
 
  • #4
If you follow my hint, you will find a cleaner approach.
 
  • #5
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.
 
  • #6
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.
 
  • #7
In any case shouldn't 999 and 1000 both be acceptable answers?
 
  • #8
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.
 
  • #9
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?
 
  • #10
rollingstein said:
You still don't see the answer?

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

So what happens at the maximum?
 
  • #12
Can you tell me to which area of mathematics these type of questions belong?
 
  • #13
@CompuChip: Sorry if this is annoying you but I really have no idea.
 
  • #14
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?
 
  • #15
Before the maximum, series increases. After that it decreases.
 
  • #16
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?
 
  • #17
rollingstein said:
In any case shouldn't 999 and 1000 both be acceptable answers?
Well it is pretty easy to show that a999 = a1000 .
 
  • #18
But wait!

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

is larger than either of those...

And now we go to scary places.
 
  • #19
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.
 
  • #20
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.
 
  • #21
Dick said:
n=999 gives 1000^999/999!. n=1000 gives 1000^1000/1000!. 1000!=999!*1000.

Thanks Dick! :smile:
 
  • #22
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:
 
  • #23
Having a sequence of positive numbers, if nth is the greatest among them, it must be greater then its neighbours, so an+1≤an and an-1≤an:biggrin:

ehild
 
  • #24
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 !
 
  • #25
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.
 
  • #26
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:
 
  • #27
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
 
  • #28
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. :)
 
  • #29
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.
 
  • #30
Ah, yes, it was SammyS and also rollingstein...

ehild
 

FAQ: Max Value of a_n: Find n for Maximum Value

What does the term "Max Value of a_n" mean?

The term "Max Value of a_n" refers to the maximum value that can be obtained from a sequence of numbers, where "a_n" represents the nth term in the sequence.

How do you find the maximum value of a_n?

To find the maximum value of a_n, you need to first determine the sequence of numbers and then compare each term to find the largest value. This can be done manually or by using a mathematical formula or algorithm.

What is the significance of finding the maximum value of a_n?

Finding the maximum value of a_n can provide important information about the sequence of numbers, such as the range and the overall trend. It can also be useful in making predictions and identifying outliers.

Can the maximum value of a_n be negative?

Yes, the maximum value of a_n can be negative if the sequence of numbers contains negative values. In this case, the maximum value would be the largest negative number in the sequence.

Is there a specific method for finding n for the maximum value of a_n?

There is no specific method for finding n for the maximum value of a_n. It depends on the context and the type of sequence being analyzed. Some methods may involve using mathematical formulas, while others may require a trial and error approach.

Back
Top