#Formula of a periodic sequence without trygnometric functions and floor
28 messages · Page 1 of 1 (latest)
I have heard that the function y=A( (x/p)-⌊(x/p)⌋ ) is periodic without involving a trigonometric part,where A is the amplitude and p is the period.
(And the ⌊ ⌋ is the floor function.)
Periodicity is very related to roots of unity
You will likely not be able to never mention cos and sin if you study 3-periodic sequences
I found out it is possible to create a periodic sequence of {0,1,0,-1} in two ways.
It is also fairly easy to create a periodic sequence of two number for example 1 and 2.
But I'm still not able to figure out or find on the Internet how to create a periodic sequence of {1,2,3}.
For all sequences where the period is a power of 2, you can find formulas just the way you did
But for periods that are not, you will need roots of unity
A sequence is k periodic when its k-th iteration after rank n is equal to the term at rank n.
So $u_{n+3} = u_n$
If you look for a geometric sequence that satisfies this relation, that is $u_{n+1} = qU_n$ you get:
$q^3 = 1$
This gives you three possible values for q
Daddy_314
This also depends on what kind of formula you want. Can you use the mod function?
It says in the description that mod or floor isn't allowed
that would be just too easy
You didn't write that part! 🤪
without the use of trygonometric functions (sin, cos...) and functions like floor.
I definitely wrote it at the beginning, but I suppose I've only noticed the message where I answered the first question.
I definitely agree, but I thought it was worth mentioning, partially because I think these questions aren't very well defined and it helps to show that.
Oh, is mod a "function like floor"? Fair enough!
No worries!
I had it in mind, but I haven't actually written it.
There's some neat underlying math about how roots of unity and trig and modular arithmetic are connected.