Formula of nth term of a pattern

In summary, finding the formula for the nth term of a sequence that goes infinitely in both directions can be complicated. In this case, it is necessary to arbitrarily designate a starting term, either ##a_0## or ##a_1##, and write the formula based around that term. For a recursive definition, any two adjacent terms in the sequence can be used to describe a term in terms of its preceding term. To find the formula for the given sequence of numbers, it is helpful to create a difference table and look for patterns.
  • #1
songoku
2,292
325

Homework Statement


Find the formula for nth term of:
... , -450 , -270 , -180 , -90 , 90 , 180 , 270 , 450 , ...



Homework Equations


Arithmetic and geometric series
Recursive

The Attempt at a Solution


Usually when finding the formula of Un, n starts from 1. But since the pattern goes infinite in both ways, how can we set which one is the first term?

As for recursive, it usually involves the preceding term, Un-1. Again, how can we determine the preceding term for the above case?

Please give me idea how to start solving this. Thank you very much
 
Physics news on Phys.org
  • #2
For the general formula (in terms of n), you're right that the sequence going both ways complicates things. The answer is that you have to arbitrarily designate a term to be ##a_{1}##, or perhaps ##a_{0}##. You would write the whole formula based around that starting term, in a form like this:

##a_{n} = ...##, where ##a_{0} = 3##

For the recursive definition, you'll just use a term and the preceding term. Since it's recursive, you don't need to know the particular values for either of those terms -- the recursive form just means you describe a term in terms of its preceding term. So it works with any two (adjacent) terms in the sequence, and so it isn't necessary to designate a starting term. The form for that would look like:

##a_{n} = a_{n-1}...##

So ##a_{n}## can refer to any term in the sequence, because this rule works for any pair of terms in the sequence, no matter how long it is and whether it goes infinitely in just one direction or two.
 
Last edited:
  • #3
songoku said:

Homework Statement


Find the formula for nth term of:
... , -450 , -270 , -180 , -90 , 90 , 180 , 270 , 450 , ...



Homework Equations


Arithmetic and geometric series
Recursive

The Attempt at a Solution


Usually when finding the formula of Un, n starts from 1. But since the pattern goes infinite in both ways, how can we set which one is the first term?

As for recursive, it usually involves the preceding term, Un-1. Again, how can we determine the preceding term for the above case?

Please give me idea how to start solving this. Thank you very much

Just fix ##n = 0## anywhere you want; for example, you can take ##U_0 = -450.## All the ##U_n## for ##n < 0## are the ones you do not see to the left of what you have written and all the ##U_n## for ##n > 7## are the ones you don't see to the right of what you have written. Now just start taking differences and see what you get---there is a nice pattern.
 
  • #4
jackarms said:
For the general formula (in terms of n), you're right that the sequence going both ways complicates things. The answer is that you have to arbitrarily designate a term to be ##a_{1}##, or perhaps ##a_{0}##. You would write the whole formula based around that starting term, in a form like this:

##a_{n} = ...##, where ##a_{0} = 3##

For the recursive definition, you'll just use a term and the preceding term. Since it's recursive, you don't need to know the particular values for either of those terms -- the recursive form just means you describe a term in terms of its preceding term. So it works with any two (adjacent) terms in the sequence, and so it isn't necessary to designate a starting term. The form for that would look like:

##a_{n} = a_{n-1}...##

So ##a_{n}## can refer to any term in the sequence, because this rule works for any pair of terms in the sequence, no matter how long it is and whether it goes infinitely in just one direction or two.

Ray Vickson said:
Just fix ##n = 0## anywhere you want; for example, you can take ##U_0 = -450.## All the ##U_n## for ##n < 0## are the ones you do not see to the left of what you have written and all the ##U_n## for ##n > 7## are the ones you don't see to the right of what you have written. Now just start taking differences and see what you get---there is a nice pattern.

I still can't find the pattern. Do we have to make separate formula for n < 0 and n > 0?

I tried to set U0 = 0, at the middle of the positive and negative terms. What I got is 270 = 180 + 90 ; 450 = 270 + 180. Maybe it is related to Un = Un-1 + Un-2, but I don't know about 90 and 180.

Thanks
 
  • #5
songoku said:
I still can't find the pattern. Do we have to make separate formula for n < 0 and n > 0?

I tried to set U0 = 0, at the middle of the positive and negative terms. What I got is 270 = 180 + 90 ; 450 = 270 + 180. Maybe it is related to Un = Un-1 + Un-2, but I don't know about 90 and 180.

Thanks
The pattern is evident in the sequence as it's given, before you assign any starting point.

Hint: Make a difference table with 1st & 2nd differences.
 
  • #6
songoku said:
I still can't find the pattern. Do we have to make separate formula for n < 0 and n > 0?

I tried to set U0 = 0, at the middle of the positive and negative terms. What I got is 270 = 180 + 90 ; 450 = 270 + 180. Maybe it is related to Un = Un-1 + Un-2, but I don't know about 90 and 180.

Thanks

For the sequence
[tex] U = \{U_i,i=0,1,2, \ldots \} = \{-450 , -270 , -180 , -90 , 90 , 180 , 270 , 450 , \ldots\} [/tex]
the sequence of first differences is
[tex] dU = \{U_{i+1}-U_{i}, i = 0,1,2,\ldots \} = \{ -270-(-450),-180-(-270), \ldots \}
= \{ 180,90,90,180,90,90,\ldots \} \\
= 90 + 90 \{1,0,0,1,0,0,1,0,0,\ldots \} [/tex]
If you can find a nice formula for the sequence ##\{1,0,0,1,0,0,1,0,0,\ldots \}## you are almost finished. If you know about complex variables and the three (complex) roots of unity, you can finish up with a finite sum of some geometric series, to get a fairly nice formula for the nth term of your original sequence.
 
  • #7
Ray Vickson said:
If you can find a nice formula for the sequence ##\{1,0,0,1,0,0,1,0,0,\ldots \}## you are almost finished. If you know about complex variables and the three (complex) roots of unity, you can finish up with a finite sum of some geometric series, to get a fairly nice formula for the nth term of your original sequence.

Alternatively, you should be able to do something with n (mod3) to formulate the sequence of 1, 0, 0, 1, 0, 0 ...
 
  • #8
If we are to be rigorous, we need to take care with our definitions in defining the pattern. Recursive definitions mostly use the Recursion Theorem, which is only defined on the positive integers ##Z_+##. For more general well-ordered sets we can use the Theorem of Transfinite Recursive Definition, but that's not needed here.

We can't just use the Recursion Theorem here in a single step, because the base set is the full set of integers, which is not well-ordered. The following trick gets around this problem.

Define ##a_1=90, b_1=-90##
Define rules to give ##a_{n+1}## and ##b_{n+1}## in terms of ##a_n## and ##b_n## as follows, for ##n\in Z_+##:

##a_{n+1}=a_n+180## if ##n+1## is divisible by 3, else ##a_{n+1}=a_n+90##
##b_{n+1}=b_n-180## if ##n+1## is divisible by 3, else ##b_{n+1}=b_n-90##

Then the recursion theorem tells us that these definitions prescribe unique sequences ##a_n## and ##b_n##.

Now we can just define ##c:Z\to Z## by ##c(n)=a_{n+1}## if ##n\geq 0##, otherwise ##c(n)=b_{-n}##.
 
Last edited:
  • #9
Ray Vickson said:
For the sequence
[tex] U = \{U_i,i=0,1,2, \ldots \} = \{-450 , -270 , -180 , -90 , 90 , 180 , 270 , 450 , \ldots\} [/tex]
the sequence of first differences is
[tex] dU = \{U_{i+1}-U_{i}, i = 0,1,2,\ldots \} = \{ -270-(-450),-180-(-270), \ldots \}
= \{ 180,90,90,180,90,90,\ldots \} \\
= 90 + 90 \{1,0,0,1,0,0,1,0,0,\ldots \} [/tex]
If you can find a nice formula for the sequence ##\{1,0,0,1,0,0,1,0,0,\ldots \}## you are almost finished. If you know about complex variables and the three (complex) roots of unity, you can finish up with a finite sum of some geometric series, to get a fairly nice formula for the nth term of your original sequence.

andrewkirk said:
If we are to be rigorous, we need to take care with our definitions in defining the pattern. Recursive definitions mostly use the Recursion Theorem, which is only defined on the positive integers ##Z_+##. For more general well-ordered sets we can use the Theorem of Transfinite Recursive Definition, but that's not needed here.

We can't just use the Recursion Theorem here in a single step, because the base set is the full set of integers, which is not well-ordered. The following trick gets around this problem.

Define ##a_1=90, b_1=-90##
Define rules to give ##a_{n+1}## and ##b_{n+1}## in terms of ##a_n## and ##b_n## as follows, for ##n\in Z_+##:

##a_{n+1}=a_n+180## if ##n+1## is divisible by 3, else ##a_{n+1}=a_n+90##
##b_{n+1}=b_n-180## if ##n+1## is divisible by 3, else ##b_{n+1}=b_n-90##

Then the recursion theorem tells us that these definitions prescribe unique sequences ##a_n## and ##b_n##.

Now we can just define ##c:Z\to Z## by ##c(n)=a_{n+1}## if ##n\geq 0##, otherwise ##c(n)=b_{-n}##.

Sorry for really late reply

I think I get the idea. I'll try it first. Thanks a lot for the help
 
  • #10
I'm always puzzled by these things - i.e. notice how the sequence is symmetrical about the -90,90 terms?
Why not exploit that? Put ##a_1=90##, then ##a_n = (n/|n|)a_{|n|}## ... the sequence for ##a_{|n|}## should be easy ... though there are only four terms so you are spoiled for choice. {90, 180, 270, 450...} the differences than go {1, 1, 2, ...} in units of ##a_1##, which is suggestive.

What approach you choose seems to depend on what assumptions you make about the pattern in question.
 

1. What is the formula for finding the nth term in a pattern?

The formula for finding the nth term in a pattern is a + (n-1)d, where a is the first term in the pattern and d is the common difference between each term.

2. How do I identify the pattern in a sequence of numbers?

To identify the pattern in a sequence of numbers, look for a consistent change between each term. This change could be addition, subtraction, multiplication, or division. Once you have identified the pattern, you can use the formula to find the nth term.

3. Can the formula for finding the nth term be used for any type of pattern?

Yes, the formula for finding the nth term can be used for any type of pattern as long as there is a consistent change between each term. This includes arithmetic, geometric, and even more complex patterns.

4. How do I use the formula to find a specific term in a pattern?

To use the formula to find a specific term in a pattern, simply plug in the value of n for the term you want to find. The resulting equation will give you the value of that term in the pattern.

5. Can the formula be used to find the value of a term that is not in the sequence?

Yes, the formula can be used to find the value of a term that is not in the sequence. This is helpful when trying to predict or extend a pattern. Simply plug in the desired value for n and solve for the missing term.

Similar threads

  • General Math
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
5
Views
4K
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
4K
  • Precalculus Mathematics Homework Help
Replies
8
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • General Math
Replies
4
Views
1K
  • Precalculus Mathematics Homework Help
Replies
12
Views
3K
  • Precalculus Mathematics Homework Help
Replies
11
Views
1K
Back
Top