Jump to content

Wikipedia:Reference desk/Archives/Mathematics/2013 March 19

From Wikipedia, the free encyclopedia
Mathematics desk
< March 18 << Feb | March | Apr >> March 20 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


March 19

[edit]

Why is the Integer zero-dimensional?

[edit]

According to High-dimensional space, the Integers are zero-dimensional, Reals are one-dimensional, and Complex numbers are two-dimensional. Why are the integers zero-dimensional? They expand indefinitely in either direction along an imaginary 'line' (a 1D constuct) so I would have thought they were 1D themselves, much like the reals. --Iae (talk) 14:18, 19 March 2013 (UTC)[reply]

Maybe Zero-dimensional space would be helpful here... --CiaPan (talk) 16:29, 19 March 2013 (UTC)[reply]
Not really, for me. What part of that would relate to the integers? --Iae (talk) 18:30, 19 March 2013 (UTC)[reply]
Topologically, the integers are discrete — there is no way to approach an integer as a limit of other integers. Each integer just sits there all alone by itself. All discrete spaces are zero-dimensional, no matter how many points they have. --Trovatore (talk) 18:32, 19 March 2013 (UTC)[reply]
In integers, every integer number n (ie. every point of the space) creates a singleton {n}, which is a clopen set. Those singletons form a topological base for integers, and Zero-dimensional space says that a space with such base is zero-dimensional (with respect to the small inductive dimension). --CiaPan (talk) 06:37, 20 March 2013 (UTC)[reply]
Thanks. This runs counter to my intuition of dimensions, but I know little about topological spaces. Thanks for the links. --Iae (talk) 10:38, 20 March 2013 (UTC)[reply]

Fibonacci n

[edit]

In Binet's formula

is it possible to isolate n? Pokajanje|Talk 15:45, 19 March 2013 (UTC)[reply]

I haven't worked it out in detail, but since , you can mulitply through by and get a quadratic equation in . Use the quadratic formula on that, being careful which root you use, and take logs. AndrewWTaylor (talk) 15:59, 19 March 2013 (UTC)[reply]
I can reduce things to , but it seems like there's one variable too many. (And, sorry, the quadratic equation you describe isn't obvious to me.) Pokajanje|Talk 20:24, 19 March 2013 (UTC)[reply]
Multiply both sides of the following equation through , and subtract the first side from both sides, then replace with t or x. You'll get a quadratic equation in t or x, whose roots are then computed through the consecrated formula. Extract then the logarithm base from it/them in order to obtain n. — 79.113.221.97 (talk) 21:10, 19 March 2013 (UTC)[reply]
That would mean that . Therefore, (I use that root because and cannot be negative.) Can that be reduced further? Pokajanje|Talk 22:14, 19 March 2013 (UTC)[reply]
Uhm... I thought this was about finding n when Fn is known... was I wrong ? :-\ — 79.113.221.97 (talk) 23:49, 19 March 2013 (UTC)[reply]
That's what I thought too. For all n, Fn is the closest integer to :
So, given a Fibonnacci number, multiply it by the square root of 5, then take log base phi, and round to the nearest integer, right? Bubba73 You talkin' to me? 03:09, 20 March 2013 (UTC)[reply]
I thought that formula I just found was the way to derive n from Fn. Pokajanje|Talk 03:45, 20 March 2013 (UTC)[reply]
To find you want to take the larger of the two roots of the quadratic (if n is odd both roots are positive, but the smaller root is ). So
which is what Bubba73 said. Gandalf61 (talk) 14:32, 20 March 2013 (UTC)[reply]
I'm not sure it's appropriate to round it off in this case. Also, how did you get ? The quadratic I get is . Pokajanje|Talk 16:36, 20 March 2013 (UTC)[reply]
Your quadratic is not quite correct because so you have to take care with signs (or split into even and odd cases). Try a couple of numerical examples:
Gandalf61 (talk) 16:56, 20 March 2013 (UTC)[reply]
Rounding off as I described is appropriate because the procedure gets close to the proper integer very quickly. Bubba73 You talkin' to me? 18:21, 20 March 2013 (UTC)[reply]
Speed isn't that much of a factor here, because a computer's going to be doing all the calculations. Pokajanje|Talk 04:12, 21 March 2013 (UTC)[reply]
The method I gave is very fast. If you have calculated the square root of 5 and phi in advance, it takes one multiplication, one log, and one round. Bubba73 You talkin' to me? 04:15, 21 March 2013 (UTC)[reply]
Postscript: if you work it out, the difference between -4 and +4(-1x) actually isn't that different. Plot the graphs of the functions and you'll see they're mostly identical. Pokajanje|Talk 03:21, 21 April 2013 (UTC)[reply]

Period of a repeating sequence

[edit]

Hi,

I was wondering if anyone could help me prove something. Basically I’ve got a problem where I have a bunch of variables that vary periodically over time, forming a ‘sequence’, and I want to know when that sequence repeats. If the functions describing the variables are , then they can be put in a vector:

So now the idea is to find what the smallest value of such that .

One case I'm interested in is when the functions don't repeat within their periods (for example, they're saw-tooth waves). In this case working out when repeats is easy. For all the functions we can say:

Where is the period of the nth function. Then for :

From which we can immediately conclude (by the definition of the greatest common divisor) that the smallest is:

However, the other case I'm interested in is when the functions repeat once within their period, specifically when they are triangle waves. Intuitively I would believe that in this case (triangle waves) the sequence repeats when:

But I can't figure out how to prove this. Can anybody think of a way?

203.167.139.208 (talk) 20:40, 19 March 2013 (UTC)[reply]

Your functional notation suggests that t is continuous, but your use of GCD suggests that it is discrete. If it's discrete, I'm not sure that there is a unique standard definition for a triangle wave. However, supposing that is one such (with the programmer's definition of % as the modulo operation) and is another, then we have a counterexample because your and obviously not all values are the same. (I unfortunately don't immediately have any idea for what it is in that case, so I'll first see if my interpretation is even correct.) --Tardis (talk) 05:53, 20 March 2013 (UTC)[reply]
Sorry, what I meant was least common multiple, not gcd, whoops! But I don't understand how either imply that t is discrete? It does imply that the periods T1...TN are integers, but even then, if the meaning of LCM() is extended I think it will still work with non-integers (i.e. if LCM(a,b) is taken to mean 'the smallest number that is an integer multiple of both a and b'). But yes, if t were discrete I wouldn't have expected my above intuition to be right because it's based on the fact that a (continuous) triangle wave is symmetrical. 118.93.174.101 (talk) 09:21, 20 March 2013 (UTC)[reply]
The implication arises because (with your definition, which is the only sensible one I know) neither nor exist. Of course, you can restrict to rational periods (technically: commensurate periods), but you didn't say so, and that's relatively uncommon. Assuming that is meant to apply at every t, your statement about triangle waves is still false, as the period cannot be smaller than the period of any component, and half the lcm can be (consider two periods, one a multiple of the other). You might also mean , in which case I think it's rather more complicated with all the recrossings. --Tardis (talk) 13:04, 20 March 2013 (UTC)[reply]
Ok, fair enough, I think made too many unspoken assumptions in the question, and you comments has been helpful in pointing out the pitfalls in my argument above - but let me rephrase the question. If I have a set of triangle waves, each with an integer period, what is the 'period' of the whole set? By 'period' I mean what you said above (). I do see what you mean by it being complicated by the recrossings - since there are points where x(t) takes on the same value it has before, but the sequence as a whole isn't 'repeating'; but that's why I'm asking for help :). 203.167.139.208 (talk) 19:56, 20 March 2013 (UTC)[reply]
(One more assumption: should be even, so define .) Well, now that we have a precise problem, what do we know? Each with (the precise values of course do not matter, and only half the phases need be considered). To have we need or . To have we then need (that is, ) or (that is, ). We can't neglect the simpler case by setting in the complicated one because t must be shared for all i. In either case, must be even, so define .
Then we apply the Chinese remainder theorem: for any given t, we have a number of congruences of the form or . If we take the latter case for all i, a solution exists iff . We can choose the former case for any i by defining (that is, we may conservatively shift it so that its minima are under consideration); any non-coprime pairs of (half-) periods will define a set of allowed restrictions (that is, sets of i for which we use ) and values of t. In particular, if but we must substitute at least one one of them; the other must then have the value it would have were it substituted, so we may as well say that we must substitute both. (Then the two are equivalent and we can drop one of them.)
Beyond this, I don't see a particular approach beyond considering each , finding the required substitutions (substituting both will always work, of course, and devolves to the sawtooth case) and constraints on t (which will eventually be subject to its own Chinese remainder problem from all the half-substituted pairs) via constraint propagation, and then finding h for each allowed system. As for actually finding the answer, it might be simpler to do it inductively by keeping a set of allowed pairs and extending/filtering it as you consider each function (extending to reach the new LCM trivial answer). --Tardis (talk) 03:02, 23 March 2013 (UTC)[reply]

See Almost periodic function. Bo Jacoby (talk) 14:27, 20 March 2013 (UTC).[reply]