All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Sequence with only 3 numbers (Posted on 2009-03-07)
Trying to define a way to generate the terms of a sequence, and starting with the number 5, I found, surprisingly, that the way I used generated this sequence:

5, 8, 11, 5, 8, 11, 5, 8, 11, ...

And these 3 numbers repeat in this order indefinitely.

Define a simple way to generate this sequence.

 See The Solution Submitted by pcbouhid Rating: 2.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 general solution | Comment 4 of 11 |

given a infinite sequence of real numbers that repeats every n values and those values are x1,x2,....,xn you can use the following process to easily generate a closed function to gives those values.

First find polynomial P(t) such that P(k)=xk for k=1 to n.

then let

F(t)=P(1+[(t-1) mod n])

and F(t) will generate the needed sequence.

 Posted by Daniel on 2009-03-07 22:59:00

 Search: Search body:
Forums (0)