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

  • Thread starter Thread starter Kopake
  • Start date Start date
  • Tags Tags
    Sequence
AI Thread Summary
An explicit sequence for the pattern 1, 1, 2, 2, 3, 3, etc., can be derived without using recurrence or the greatest integer function. The odd terms can be expressed as (n+1)/2 for n = 1, 3, 5, 7, and the even terms as n/2 for n = 2, 4, 6, 8. To alternate between these two functions, the alternating factor (-1)^n can be utilized. A proposed formula without using floor functions is a = (2 * m + (-1)^m - 1)/4, where m represents the sequence index. The discussion also touches on extending this concept to sequences with repeating terms of varying widths without relying on floor functions.
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, ...}

a = \lfloor \frac{m}{2} \rfloor + 1

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, ... }

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

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

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

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

It's trivially easy to do it with floor

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

a_m = \lfloor \frac{m}{n} \rfloor

But what about without floor?
 

Similar threads

Replies
7
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Back
Top