|
|
|Store|
|
|
|
|
|
|
|
|
CTK Exchange
Zakatos
guest
|
Sep-16-03, 06:15 PM (EST) |
|
"Interesting periodic decimals"
|
I've been studying proprierties of some periodic decimals and found something that called my attention: Let a, b be integers. Thus, a/b should be rational. Suppose a/b's decimal form is periodic. What is the maximum period a/b could have? (I'm calling period the number of digits that form the sequence which repeats itself, ex: 2,343434... has the 34 loop so its period is 2). The answer is: it must be at most b-1. Proof: Suppose a/b irreductible. Do the usual division algorithm for a and b. You should find a quotient and the remainder different from zero. Giving continuity to the algorithm implies in finding successive remainders, all of them between zero and b, exclusive. Note when a remainder repeats itself, and eventually some will do as so, it implies the end of the quotient period. Therefore, in order to max such period it's wanted the algorithm to "drop" every remainder possible between zero and b each once. Of course, after that the algorithm must return an existing remainder, but at that step we have a fully periodic decimal (FPD), as I mylself called such a decimal. the decimal 1/7 is a FPD. Dividing 1 by 7 gives: 1 / 7 = 0 remainder 1 10 / 7 = 1 remainder 3 30 / 7 = 4 remainder 2 20 / 7 = 2 remainder 6 60 / 7 = 8 remainder 4 40 / 7 = 5 remainder 5 50 / 7 = 7 remainder 1 Note that the remainder looped throughout every possible value between 1 and 6, before coming back to 1. Thus, the decimal 0,142857... is a FPD. It can be proven that a periodical decimal with period n, if multiplied by an integer k, will result into another periodical decimal with period n as well, though not necessarily the same sequence of digits. At the case of 2/7 we have: 0,285714... That way, we see the integer 7 is the "responsible" for generating the 6-digit period, no matter which number is the numerator. 7 is a "FPD generator". After making some divisions I found the following FPD generators at base 10: 7, 17, 19, 23. It'seems FPD generators tend to be prime numbers. Now I'm done, i ask someone's help into answering questions like: Are there infinite FPD generators? Is there a way to predict if a number whether is or not a FPD generator? Are there any number that is a FPD generator in any base? (Odd numbers are all FPD generators at base 2, once every periodic decimal at base 2 is a FPD). Please, send comments! |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
sfwc
Member since Jun-19-03
|
Sep-17-03, 08:09 PM (EST) |
|
1. "RE: Interesting periodic decimals"
In response to message #0
|
LAST EDITED ON Sep-18-03 AT 02:20 PM (EST) >After making some divisions I found the following FPD >generators at base 10: 7, 17, 19, 23. It'seems FPD >generators tend to be prime numbers. Well, as it turns out, the conditions for a number b to be an FPD generator in base n are: (1) b and n must be coprime. (2) n must be a generator (here generator is used in the standard number theoretical sense, as opposed to in the sense of an FPD generator) modulo b. Why? well, (1) is kinda obvious, since if n and b have a common factor k say, then similar reasoning shows the period is at most b/k - 1. (2) follows from the fact that if stuff has d digits then: (0.(stuff)(stuff)(stuff)...)*(nd - 1) = stuff, meaning that the denominator of 0.(stuff)(stuff)(stuff)... must be a factor of nd - 1. Since this argument is reversible, what we require is that b-1 be the least value of d such that nd~1 mod b. In other words, n is a generator mod b. This restricts b to values which are either primes or prime powers. >Now I'm done, i ask someone's help into answering questions >like: Are there infinite FPD generators? Yes. For 10 is known to be a generator mod 7m for any m. This is an infinite family of FPD generators mod 10. I think a similar family could be constructed for any base n. >Is there a way to predict if a number whether is or not a FPD generator? Yes. Check whether 10 is a generator mod that number. If that number is a large prime or prime power, then 10 is very likely to be a generator. >Are there any number that is a FPD generator in any base? Only 2. No b is never an FPD generator in the base b+1, unless b = 2. but any odd number is a generator modulo 2. >(Odd numbers are all FPD generators at base 2,whence every >periodic decimal at base 2 is a FPD). Alas, not true. For example 1/7 = 0.001001001001..., with period 3 instead of 6 in base 2. So 7 is not an FPD generator to base 2. Did you mean what I said above (2 is an FPD generator to any odd base) instead? Thankyou sfwc <>< |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
quodlibet
guest
|
Sep-19-03, 05:59 AM (EST) |
|
3. "RE: Interesting periodic decimals"
In response to message #1
|
You write: 10 is known to be a generator mod 7^m for any m. This is an infinite family of FPD generators mod 10. It's true that 10 is a primitive root mod 7^m. But if I understand the definition of FPD correctly, we're looking for a number n such that 1/n has a period of n-1 digits. For this purpose, n must be prime. 1/49, for example, has a period of 42 digits. You also write: I think a similar family could be constructed for any base n. Maybe so, but I think that's still an open conjecture.
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
|
sfwc
Member since Jun-19-03
|
Sep-20-03, 10:34 PM (EST) |
|
4. "RE: Interesting periodic decimals"
In response to message #3
|
I stand corrected (and feeling really quite stupid) Unfortunately, I can't now get a handle on the problem 'are there infinitely many FPD generators to base 10' I seems like there ought to be, but I can't prove it. Is it a standard result? The same comments apply to a general base n (except the question of whether it is a standard result of course: We know it to be open here) Thankyou sfwc <>< |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
|
Zakatos
Member since Sep-16-03
|
Sep-22-03, 10:58 AM (EST) |
|
5. "Please clear me out those..."
In response to message #4
|
Oh man, I really messed it out... forget about the "every odd number is an FPD generator at base 2", I simply messed the only two digits (0 and 1) with the number of periods. Stupid me... but thats ok for now. Another note I might add concerns what I said: "It can be proven that a periodical decimal with period n, if multiplied by an integer k, will result into another periodical decimal with period n as well, though not necessarily the same sequence of digits. At the case of 2/7 we have: 0,285714..."... well that is valid for any integer k other than a multiple of b, being b the denominator of the FPD, as it'seems clear enough. Well, sfwc, I still don't get the idea of "generator modulo". Because I'm brazilian, I'm not used too much to the english specific terms of math... I guess "modulo" is the operation that gives the remainder of a division of two terms, but I don't know enough of "generator modulo". Please clear me out this if you don't mind. Now, up to some other questions: In fact, I can't prove what I mentioned above, it's just an intuitive view to me. How can you prove (1) that n and b must be coprime? Also, I tried to prove (2): Let a/b be a FPD. It can be written as: 0,(stuff)(stuff)... Let d be the number of digits of "stuff" a/b * n^d-1 = (stuff),(stuff)(stuff)... - 0,(stuff)(stuff) = (stuff) No prob till now. So, thats equivalent to: a/b * n^d-1 = (a * n^d-1)/b = stuff But stuff is an integer, so (a * n^d-1)/b must be reductible to k/1. In order to do this, b must be a factor of (a * n^d-1). If we let "a" be the cannon numerator which is only a multiple of itself (i.e. 1), so we have that b must be a factor of n^d-1. OK. But accordingly to the definition of FPD, d = b-1, so we have: b ~ n^d - 1 b ~ n^(b-1) - 1 b ~ (n^b / n) - 1 or b ~ n^d - 1 d+1 ~ n^d - 1 And I´m stuck into that. How do you get at n^d ~ 1 mod b? Finally, when I ask "Are there any number that is a FPD generator in any base?" I guess I miswrote, I mean, is there some integer k that is a FPDgen in every base? We know 2 isn't a FPDgen at base 10 (it's true that the number of decimal digits of an a/b rational, with b not ~ 2, is 2-1 = 1, but the decimal is not periodic). Hope I didn't brought you too much work. I would like also to suggest a program algorithm to test if a number is a FPD generator at a given base. Thanks again Zakatos |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
|
sfwc
Member since Jun-19-03
|
Oct-03-03, 08:40 AM (EST) |
|
6. "RE: Please clear me out"
In response to message #5
|
>Well, sfwc, I still don't get the idea of "generator modulo". >Because I'm brazilian, I'm >not used too much to the english >specific terms of math... I guess "modulo" is the >operation that >gives the remainder of a division of two terms, but I don't know >enough of >"generator modulo". Please clear me out this if you don't >mind. Ok. let a be coprime to m. The set {a, a^2, a^3, ...} and so on, where all the numbers are taken modulo n always forms a cyclic subgroup of the integers mod n under multiplication. If the whole group of integers mod n under multiplication has a cyclic structure, then it must be of this form. that is, there must be some element g with {g, g^2, g^3, ...} being the whole set of integers mod n. All values of g with this property are called generators mod n. That was badly explained, but I guess you can find better explanations on google.>How can you prove (1) that n and b must be coprime? Imagine (as you did earlier) performing the long division. let b and n have common factor k. Then eventually at any stage you are subtracting a number divisible by k (because it is a multiple of b) from another number also divisible by k (since it's last digit is 0 in base n). So the remainder which you cary at any stagemust be divisible by k. This restircts the number of possible remainders, and so possible length of the period, by a factor of k. So if k>1 then the period cannot be as large as b-1. It can only reach b/k - 1. >How do you get at n^d ~ 1 mod b? Well, if b is prime, then this is true whenever n is not divisible by b (FLT). We also require that b - 1 be the LEAST value of h such that n^h ~ 1 mod b. By fermat-euler, n^f(b) ~ 1 mod b. But f(b) <= b - 1 with equality iff b is prime (this is why I felt so dumb). Finally, the remaining condition is precisely equivalent to 'n is a generator mod b' >Finally, when I ask "Are there any number that is a FPD generator in any base?" I guess I >miswrote, I mean, is there some integer k that is a FPDgen in every base? We know 2 isn't a >FPDgen at base 10 (it's true that the number of decimal digits of an a/b rational, with b >not ~ 2, is 2-1 = 1, but the decimal is not periodic). Well, evidently no b is an FPDgen to the base b, or to any base with a common factor with b. So we restrict this to the more interesting question 'is there a b which is an FPDgen to any base coprime to b'. 2 has this property, but no other number does. For no b can be an FPDgen mod b+1 except 2. >Hope I didn't brought you too much work. It's ok. it was interesting. >I would like also to suggest a program algorithm to test if a number is a FPD generator at >a given base. ok. Outline structure: First test b for primality. In a loop calculate the powers of n mod b up to n^(b-1)/2. If none of them are 1, then b is an FPDgen mod n. Otherwise, it isn't. I guess there must be a quicker algorithm, but I don't know it. Thankyou sfwc <>< |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
|
alexb
Charter Member
1093 posts |
Sep-18-03, 00:24 AM (EST) |
|
2. "RE: Interesting periodic decimals"
In response to message #0
|
Each of the books below has a relevant chapter
- A. H. Beiler, Recreations in the Theory of Numbers
- S. Tabachnikov, Kvant Selecta: Algebra and Analysis, I
For example, let m be a divisor of 99...9 (n 9's), so that 99...9/m = a1 a2...an, where a few first ai's may be zero. Then 1/m = 0.a1 a2...ana1 a2...an... 37·27 = 999, therefore, 1/37 = 027027... |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote | Top |
|
|
You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
|Front page|
|Contents|
Copyright © 1996-2018 Alexander Bogomolny
71543628
|
|
|