Max Value of a_n: Find n for Maximum Value

  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    Maximum Value
Click For Summary

Homework Help Overview

The problem involves finding the integer value of n for which the expression a_n = 1000^n / n! reaches its maximum. Participants are exploring the behavior of this sequence and its maximum value.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss using the ratio of consecutive terms, a_{n+1}/a_n, to analyze the sequence's behavior. Some consider logarithmic transformations and Stirling's approximation. Others question the implications of the ratio being greater than, less than, or equal to one.

Discussion Status

The discussion is active, with various approaches being suggested. Some participants have provided insights into the nature of the sequence and its maximum, while others are still grappling with the concepts involved. There is recognition that both n=999 and n=1000 may be valid answers, but clarity on the reasoning is still being sought.

Contextual Notes

It is noted that n must be an integer, and there are discussions around the continuity and behavior of the sequence around its maximum value.

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
You could try looking at [tex]\frac{a_{n + 1}}{a_n}[/tex]
 
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.)
 
If you follow my hint, you will find a cleaner approach.
 
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?
 
  • #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
 

Similar threads

Replies
21
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
6
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
9
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
12
Views
2K