What Is the Pattern in This Number Sequence?

  • Context: High School 
  • Thread starter Thread starter Alexx1
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around identifying a pattern in the number sequence: 1, 4, 1, 16, 1, 36. Participants explore various mathematical representations and formulas to describe the sequence, considering both odd and even indexed terms. The scope includes mathematical reasoning and exploratory approaches to sequence analysis.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants propose that the odd indexed terms are represented by n^2, while the even indexed terms are consistently 1.
  • Others suggest a step function approach, indicating that the sequence can be expressed with a formula involving conditions based on the parity of n.
  • A participant presents a formula that combines both odd and even terms using the expression a_n = (1 - (-1)^n)/2 + (1 + (-1)^n)/2 * (n+1)^2.
  • Another participant offers a compact representation as a_{n}=n^{(1+(-1)^{n})}, suggesting a simpler way to express the sequence.
  • Some participants express uncertainty about the continuity of the representation and the appropriateness of using binary conditions in the formulas.
  • There are multiple formulations proposed for the sequence, including a piecewise definition where a_n = n^2 for even n and a_n = 1 for odd n.
  • One participant suggests a method to derive the sequence using a formula involving S(n/2) to connect the terms.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single formula for the sequence, with multiple competing views and formulations presented. There is ongoing debate about the best approach to represent the sequence.

Contextual Notes

Some participants note the complexity of deriving a continuous and differentiable expression for the sequence, highlighting the challenges posed by the binary nature of the terms.

Who May Find This Useful

Readers interested in mathematical sequences, pattern recognition, and those exploring different approaches to sequence representation may find this discussion beneficial.

Alexx1
Messages
86
Reaction score
0
Can someone help me with this sequence?

1 4 1 16 1 36

If I only look at the odd numbers it's: n^2

But I don't know how they get to '1'..
 
Mathematics news on Phys.org


My answer would be to construct a step function for the y power term in x^y. The step function is a continuous representation of the integral of kronecker/dirac delta. The condition of the step is 'evenness' or 'oddness'.

Eg. If your series were,
1 8 1 64 1 216..

then my solution would be
[tex] n^{g};[/tex]
[tex] g=\frac{2}{1+ exp(P*(3*binx_n -1)};[/tex]
where binx_n is the last (right-most) digit in the binary representation of n; and P is a very large number (say 1e9). So in your case, the series will be: (read from left to right.. solution from MATLAB for 100 term series)

1 4 1 16 1 36 1 64 1 100 1 144 1 196 1 256 1 324 1 400 1 484 1 576 1 676 1 784 1 900 1 1024 1 1156 1 1296 1 1444 1 1600 1 1764 1 1936 1 2116 1 2304 1 2500 1 2704 1 2916 1 3136 1 3364 1 3600 1 3844 1 4096 1 4356 1 4624 1 4900 1 5184 1 5476 1 5776 1 6084 1 6400 1 6724 1 7056 1 7396 1 7744 1 8100 1 8464 1 8836 1 9216 1 9604 1 10000
...

So the big question here becomes, is the representation actually continuous (for it to be a nice analytical solution)? The presence of the binary makes that question hard to answer. Obviously, using the binary is an overkill. But there's a ton of ways to flip the exponential's sign given a number is odd or even. Any answer anyone else comes up with (your instructor, maybe), will be reducible to the given form.

Delightful little question. Hope this shows you how to consider such problems.

Edit: Note-My expression is different from what you need! If you want to test your understanding, then try to express this series with a continuous, differentiable expression:
1 4 1 64 1 36 1 512 1 100 1 1728 1 …
 
Last edited:


Alexx1 said:
Can someone help me with this sequence?

1 4 1 16 1 36

If I only look at the odd numbers it's: n^2

But I don't know how they get to '1'..
So you are starting with [itex]a_0[/itex]? There is nothing at all wrong with:
[itex]a_n= 1[/itex] if n is even, [itex](n+1)^2[/itex] if n is odd.

If you insist upon a single formula,
[tex]a_n= \frac{1- (-1)^n}{2}+ \frac{1+ (-1)^n}{2} (n+1)^2[/tex]

When n is even [itex](-1)^n= 1[/itex] so [itex]\frac{1- (-1)^n}{2}= 0/2= 0[/itex] and[itex]\frac{1+ (-1)^n}{2}= 2/2= 1[/itex]. Then [itex]a_n= 0+ (n+1)^2= (n+1)^2[/itex].

When n is odd [itex](-1)^n= -1[/itex] so [itex]\frac{1- (-1)^n}{2}= 2/2= 1[/itex] and [itex]\frac{1- (-1)^n}{2}= 0[/itex]. Then [itex]a_n= 1+ 0(n+1)^2= 1[/itex].
 
Last edited by a moderator:


There are many ways to do this, the most compact one is probably:

[tex]a_{n}=n^{(1+(-1)^{n})},n=1,2...[/tex]
 


HallsofIvy said:
So you are starting with [itex]a_0[/itex]? There is nothing at all wrong with:
[math]a_n= 1[/math] if n is even, [itex](n+1)^2[/itex] if n is odd.

If you insist upon a single formula,
[tex]a_n= \frac{1- (-1)^n}{2}+ \frac{1+ (-1)^n}{2} (n+1)^2[/tex]

When n is even [itex](-1)^n= 1[/itex] so [itex]\frac{1- (-1)^n}{2}= 0/2= 0[/itex] and[itex]\frac{1+ (-1)^n}{2}= 2/2= 1[/itex]. Then [itex]a_n= 0+ (n+1)^2= (n+1)^2[/itex].

When n is odd [itex](-1)^n= -1[/itex] so [itex]\frac{1- (-1)^n}{2}= 2/2= 1[/itex] and [itex]\frac{1- (-1)^n}{2}= 0[/itex]. Then [itex]a_n= 1+ 0(n+1)^2= 1[/itex].

Thanks!
 


arildno said:
There are many ways to do this, the most compact one is probably:

[tex]a_{n}=n^{(1+(-1)^{n})},n=1,2...[/tex]

Thank you very much!
 


Alexx1 said:
Can someone help me with this sequence?

1 4 1 16 1 36

If I only look at the odd numbers it's: n^2

But I don't know how they get to '1'..

The even members are [itex](2 n)^{2}, n = 1, 2, \ldots[/itex]. The odd ones are always 1.

So, we can write:

[tex] a_{n} = \left\{\begin{array}{rc}<br /> n^{2}, & n \, \mathrm{even} \\<br /> <br /> 1, & n \, \mathrm{odd}<br /> \end{array}\right.[/tex]

You can write it in this form:

[tex] a_{n} = \frac{n^{2} + 1}{2} + (-1)^{n} \, \frac{n^{2} - 1}{2} = \frac{1 - (-1)^{n}}{2} + n^{2} \, \frac{1 + (-1)^{n}}{2}[/tex]
 


It looks to me like there's a different formula for the odd-index elements, with a2n+1 = 1, for n = 0, 1, 2, ...
 
  • #10


Dickfore said:
The even members are [itex](2 n)^{2}, n = 1, 2, \ldots[/itex]. The odd ones are always 1.

So, we can write:

[tex] a_{n} = \left\{\begin{array}{rc}<br /> n^{2}, & n \, \mathrm{even} \\<br /> <br /> 1, & n \, \mathrm{odd}<br /> \end{array}\right.[/tex]

You can write it in this form:

[tex] a_{n} = \frac{n^{2} + 1}{2} + (-1)^{n} \, \frac{n^{2} - 1}{2} = \frac{1 - (-1)^{n}}{2} + n^{2} \, \frac{1 + (-1)^{n}}{2}[/tex]
Mine's better! :approve:
 
  • #11


I'm not exactly sure, but I can think of a way to get back to the number by.. say...

[tex]\frac{1+(-1)^{n-1}}{2}[/tex]

In this formula, when n is odd, then we have 1, but when n is even we get 0.

So... we could use something like this

[tex](S(n/2)-1).\frac{(1+(-1)^{n-1})}{2}+1[/tex]

seems like it would be an appropriate formula for your problem, where S(n/2) is the sequence 4,16,36 for n=1,2,3.

So if you find a formula for the sequence S(n)=4,16,36 which I couldn't figure out (I'm pretty bad at sequences) then you can find a formula for the sequence you've shown by filling in S(n/2).
 
  • #12


arildno said:
Mine's better! :approve:

And mines probably the worst of all!

But yes, I really like your formula.
 
  • #13


arildno said:
Mine's better! :approve:

Yeah, well, I beat you to it on the other thread. :-p :approve:
 
  • #14


CRGreathouse said:
Yeah, well, I beat you to it on the other thread. :-p :approve:

That was merely a sub-thread, I rule the main thread! :smile:
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K