Solving Sequence Problem: Explicit Sequence for 1, 1, 2, 2...

  • Context: Undergrad 
  • Thread starter Thread starter Kopake
  • Start date Start date
  • Tags Tags
    Sequence
Click For Summary

Discussion Overview

The discussion revolves around finding an explicit formula for the sequence 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, etc. Participants explore various methods to derive this sequence without using recurrence relations or the greatest integer function.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions the necessity of recurrence relations, stating their professor suggested an explicit formula is possible.
  • Another participant proposes that the odd terms can be represented as (n+1)/2 for odd n, and even terms as n/2 for even n, suggesting the use of an alternating function to combine these.
  • Some participants express confusion about the outputs of the proposed formulas, with one asserting that both series yield even numbers, while another challenges this claim.
  • A later post introduces a formula involving the floor function, but acknowledges it may not meet the original constraints of the discussion.
  • Another participant presents a formula that avoids using the floor function, but raises a question about extending this approach to sequences with repeating terms of different widths.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to derive the sequence. There are competing views on the validity of the proposed formulas and the use of certain mathematical functions.

Contextual Notes

Some participants express uncertainty regarding the legality of using the floor function based on the original constraints. The discussion also highlights the challenge of extending the derived formulas to more complex sequences.

Kopake
Messages
3
Reaction score
0
I was wondering, is it possible to find an explicit sequence for: 1, 1, 2, 2, 3, 3, 4 ,4 ,5 ,5 ,6 ,6 etc.
without using the greatest integer function, or a recurrency formula? Any help would be appreciated.
 
Mathematics news on Phys.org
whats wrong with recurrence?
 
nothing wrong with recurrence, its just that my professor said its possible to find a_n without using it and I can't figure it out
 
are you in calc 2?
 
The odd terms are (n+1)/2, n = 1, 3, 5, 7, ...
The even terms are n/2, n = 2, 4, 6, 8, ...

All you have to do is to figure out how to alternate between the two functions and that can be achived by using the alternating (-1)^n

To warm up, figure out how to describe the sequence
a, b, a, b, a, b, a, b, ...
using the alternating (-1)^n.

After you figure that, you can just plug in the two formulas from your original sequence instead of a, b.
 
smallphi said:
The odd terms are (n+1)/2, n = 1, 3, 5, 7, ...
The even terms are n/2, n = 2, 4, 6, 8, ...

All you have to do is to figure out how to alternate between the two functions and that can be achived by using the alternating (-1)^n

To warm up, figure out how to describe the sequence
a, b, a, b, a, b, a, b, ...
using the alternating (-1)^n.

After you figure that, you can just plug in the two formulas from your original sequence instead of a, b.

oooooooooooooooooooooooooooooo
 
yep, I'm currently in calc 2, and thanks a bunch smallphi!
 
smallphi said:
The odd terms are (n+1)/2, n = 1, 3, 5, 7, ...
The even terms are n/2, n = 2, 4, 6, 8, ...

All you have to do is to figure out how to alternate between the two functions and that can be achived by using the alternating (-1)^n

To warm up, figure out how to describe the sequence
a, b, a, b, a, b, a, b, ...
using the alternating (-1)^n.

After you figure that, you can just plug in the two formulas from your original sequence instead of a, b.

both of those series yield even numbers
 
ice109 said:
both of those series yield even numbers

Eh? Look again.
 
  • #10
JohnDuck said:
Eh? Look again.

what? for n=1,3,5,7,9 the first sequence yields even numbers.
for n=2,4,6,8,10 the second sequence yields even numbers?
 
  • #11
Sloan's is your friend

Many possibles http://www.research.att.com/~njas/sequences/?q=1%2C1%2C2%2C2%2C3%2C3%2C4%2C4%2C5%2C5%2C6%2C6%2C7%2C7%2C8%2C8&language=english&go=Search"
 
Last edited by a moderator:
  • #12
ice109 said:
what? for n=1,3,5,7,9 the first sequence yields even numbers.
for n=2,4,6,8,10 the second sequence yields even numbers?

For the odd numbers:
1 -> (1+1)/2 = 1
3 -> (3+1)/2 = 2
5 -> (5+1)/2 = 3

Even numbers:

2 -> 2/2 = 1
4 -> 4/2 = 2
6 -> 6/2 = 3
 
  • #13
Not sure if the floor function is legal for your purposes but if so, this works

m = {1, 2, 3, 4, ...}

[tex]a = \lfloor \frac{m}{2} \rfloor + 1[/tex]

Added later:

Oops! Sorry didn't see this on first read: "without using the greatest integer function"
 
Last edited:
  • #14
This works without using the floor or ceil functions

m = {0, 1, 2, 3, ... }

[tex]a = \frac{2 * m + (-1) ^ m - 1}{4}[/tex]
 
  • #15
In an earlier post, I came up with this to answer the OP

m = {0, 1, 2, 3, ... }

[tex]a = \frac{2 * m + (-1) ^ m - 1}{4}[/tex]

But I was wondering whether this can be extended to produce sequences with repeating terms of width n? The [tex]-1^m[/tex] trick doesn't seem to help.

It's trivially easy to do it with floor

m = {0, 1, 2, ... }
n = {1, 2, 3, ...}

[tex]a_m = \lfloor \frac{m}{n} \rfloor[/tex]

But what about without floor?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 55 ·
2
Replies
55
Views
7K