MarketRepeating decimal
Company Profile

Repeating decimal

A repeating decimal or recurring decimal is a decimal representation of a number whose digits are eventually periodic ; if this sequence consists only of zeros, the decimal is said to be terminating, and is not considered as repeating.

Background
Notation Any textual representation is necessarily finite, which is why special non-decimal notation is required to represent repeating decimals. Below are several notational conventions. None of them are accepted universally. • Vinculum: In the United States, Canada, India, France, Germany, Denmark, the Netherlands, Italy, Switzerland, the Czech Republic, Slovakia, Slovenia, Chile, Taiwan, and Turkey, the convention is to draw a horizontal line (a vinculum) above the repetend. • Dots: In some Islamic countries, such as Bangladesh, Malaysia, Morocco, Pakistan, Tunisia, Iran, Algeria and Egypt, as well as the United Kingdom, New Zealand, Australia, South Africa, Japan, Thailand, India, South Korea, Singapore, and the People's Republic of China, the convention is to place dots above the outermost numerals of the repetend. • Parentheses: In parts of Europe, incl. Austria, Finland, Norway, Poland, Russia and Ukraine, as well as Vietnam and Israel, the convention is to enclose the repetend in parentheses. This can cause confusion with the notation for standard uncertainty or multiplication. • Arc: In Spain and some Latin American countries, such as Argentina, Brazil, and Mexico, the arc notation over the repetend is also used as an alternative to the vinculum and the dots notation. • Ellipsis: Informally, repeating decimals are often represented by an ellipsis (three periods, 0.333...), especially when the previous notational conventions are first taught in school. This notation introduces uncertainty as to which digits should be repeated and even whether repetition is occurring at all, since such ellipses are also employed for irrational numbers; pi|, for example, can be represented as 3.14159.... In English, there are various ways to read repeating decimals aloud. For example, 1.2 may be read "one point two repeating three four", "one point two repeated three four", "one point two recurring three four", "one point two repetend three four" or "one point two into infinity three four". Likewise, 11. may be read "eleven point repeating one double eight six seven nine two four five two eight three zero", "eleven point repeated one double eight six seven nine two four five two eight three zero", "eleven point recurring one double eight six seven nine two four five two eight three zero" "eleven point repetend one double eight six seven nine two four five two eight three zero" or "eleven point into infinity one double eight six seven nine two four five two eight three zero". Decimal expansion and recurrence sequence In order to convert a rational number represented as a fraction into decimal form, one may use long division. For example, consider the rational number : 0.0 74 ) 5.00000 4.44 560 518 420 370 500 etc. Observe that at each step we have a remainder; the successive remainders displayed above are 56, 42, 50. When we arrive at 50 as the remainder, and bring down the "0", we find ourselves dividing 500 by 74, which is the same problem we began with. Therefore, the decimal repeats: .... For any integer fraction , the remainder at step k, for any positive integer k, is A × 10k (modulo B). Every rational number is either a terminating or repeating decimal For any given divisor, only finitely many different remainders can occur. In the example above, the 74 possible remainders are 0, 1, 2, ..., 73. If at any point in the division the remainder is 0, the expansion terminates at that point. Then the length of the repetend, also called "period", is defined to be 0. If 0 never occurs as a remainder, then the division process continues forever, and eventually, a remainder must occur that has occurred before. The next step in the division will yield the same new digit in the quotient, and the same new remainder, as the previous time the remainder was the same. Therefore, the following division will repeat the same results. The repeating sequence of digits is called "repetend" which has a certain length greater than 0, also called "period". In base 10, a fraction has a repeating decimal if and only if in lowest terms, its denominator has at least a prime factor different from 2 and 5 (a prime denominator is considered as a prime factor of itself), or in other words, the denominator cannot be expressed as 2m5n, where m and n are non-negative integers. Every repeating or terminating decimal is a rational number Each repeating decimal number satisfies a linear equation with integer coefficients, and its unique solution is a rational number. In the example above, satisfies the equation : The process of how to find these integer coefficients is described below. Formal proof Given a repeating decimal x=a.b\overline{c} where a, b, and c are groups of digits, let n=\lceil{\log_{10}b}\rceil, the number of digits of b. Multiplying by 10^n separates the repeating and terminating groups: 10^nx=ab.\bar{c} . If the decimals terminate (c=0), the proof is complete. For c\neq0 with k\in\mathbb{N} digits, let x=y. \bar{c} where y\in\mathbb{Z} is a terminating group of digits. Then, c=d_1 d_2\,...d_k where d_i denotes the i-th digit, and x=y+\sum_{n=1}^\infty \frac{c}{{(10^k)}^n}= y +\left(c\sum_{n=0}^\infty \frac{1}{{(10^k)}^n}\right)-c . Since \textstyle \sum_{n=0}^\infty \frac{1}{{(10^k)}^n} = \frac{1}{1-10^{-k}} , x=y -c+\frac{10^k c }{10^k-1} . Since x is the sum of an integer (y -c) and a rational number (\frac{10^kc}{10^k-1}), x is also rational. ==Fractions with prime denominators== A fraction in lowest terms with a prime denominator other than 2 or 5 (i.e. coprime to 10) always produces a repeating decimal. The length of the repetend (period of the repeating decimal segment) of is equal to the order of 10 modulo p. If 10 is a primitive root modulo p, then the repetend length is equal to p − 1; if not, then the repetend length is a factor of p − 1. This result can be deduced from Fermat's little theorem, which states that . The base-10 digital root of the repetend of the reciprocal of any prime number greater than 5 is 9. If the repetend length of for prime p is equal to p − 1 then the repetend, expressed as an integer, is called a cyclic number. Cyclic numbers Examples of fractions belonging to this group are: • = 0., 6 repeating digits • = 0., 16 repeating digits • = 0., 18 repeating digits • = 0., 22 repeating digits • = 0., 28 repeating digits • = 0., 46 repeating digits • = 0., 58 repeating digits • = 0., 60 repeating digits • = 0., 96 repeating digits The list can go on to include the fractions , , , , , , , , , , etc. . Every proper multiple of a cyclic number (that is, a multiple having the same number of digits) is a rotation: • = 1 × 0. = 0. • = 2 × 0. = 0. • = 3 × 0. = 0. • = 4 × 0. = 0. • = 5 × 0. = 0. • = 6 × 0. = 0. The reason for the cyclic behavior is apparent from an arithmetic exercise of long division of : the sequential remainders are the cyclic sequence {{nowrap|{1, 3, 2, 6, 4, 5}|}}. See also the article 142,857 for more properties of this cyclic number. A fraction which is cyclic thus has a recurring decimal of even length that divides into two sequences in nines' complement form. For example starts '142' and is followed by '857' while (by rotation) starts '857' followed by its nines' complement '142'. The rotation of the repetend of a cyclic number always happens in such a way that each successive repetend is a bigger number than the previous one. In the succession above, for instance, we see that 0.142857... \frac{10^{11-1}-1}{11}= 909090909 and then by inspection find the repetend 09 and period of 2. Those reciprocals of primes can be associated with several sequences of repeating decimals. For example, the multiples of can be divided into two sets, with different repetends. The first set is: • = 0. • = 0. • = 0. • = 0. • = 0. • = 0. where the repetend of each fraction is a cyclic re-arrangement of 076923. The second set is: • = 0. • = 0. • = 0. • = 0. • = 0. • = 0. where the repetend of each fraction is a cyclic re-arrangement of 153846. In general, the set of proper multiples of reciprocals of a prime p consists of n subsets, each with repetend length k, where nk = p − 1. Totient rule For an arbitrary integer n, the length L(n) of the decimal repetend of divides φ(n), where φ is the totient function. The length is equal to if and only if 10 is a primitive root modulo n. In particular, it follows that if and only if p is a prime and 10 is a primitive root modulo p. Then, the decimal expansions of for n = 1, 2, ..., p − 1, all have period p − 1 and differ only by a cyclic permutation. Such numbers p are called full repetend primes. ==Reciprocals of composite integers coprime to 10==
Reciprocals of composite integers coprime to 10
If p is a prime other than 2 or 5, the decimal representation of the fraction repeats: : = 0.. The period (repetend length) L(49) must be a factor of λ(49) = 42, where λ(n) is known as the Carmichael function. This follows from Carmichael's theorem which states that if n is a positive integer then λ(n) is the smallest integer m such that :a^m \equiv 1 \pmod n for every integer a that is coprime to n. The period of is usually pTp, where Tp is the period of . There are three known primes for which this is not true, and for those the period of is the same as the period of because p2 divides 10p−1−1. These three primes are 3, 487, and 56598313 . Similarly, the period of is usually pk–1Tp If p and q are primes other than 2 or 5, the decimal representation of the fraction repeats. An example is : :119 = 7 × 17 :λ(7 × 17) = LCM(λ(7), λ(17)) = LCM(6, 16) = 48, where LCM denotes the least common multiple. The period T of is a factor of λ(pq) and it happens to be 48 in this case: : = 0.. The period T of is LCM(TpTq), where Tp is the period of and Tq is the period of . If p, q, r, etc. are primes other than 2 or 5, and k, , m, etc. are positive integers, then :\frac{1}{p^k q^\ell r^m \cdots} is a repeating decimal with a period of :\operatorname{LCM}(T_{p^k}, T_{q^\ell}, T_{r^m}, \ldots) where Tpk, Tqℓ, Trm,... are respectively the period of the repeating decimals , , ,... as defined above. ==Reciprocals of integers not coprime to 10==
Reciprocals of integers not coprime to 10
An integer that is not coprime to 10 but has a prime factor other than 2 or 5 has a reciprocal that is eventually periodic, but with a non-repeating sequence of digits that precede the repeating part. The reciprocal can be expressed as: :\frac{1}{2^a \cdot 5^b p^k q^\ell \cdots}\, , where a and b are not both zero. This fraction can also be expressed as: :\frac{5^{a-b}}{10^a p^k q^\ell \cdots}\, , if a > b, or as :\frac{2^{b-a}}{10^b p^k q^\ell \cdots}\, , if b > a, or as :\frac{1}{10^a p^k q^\ell \cdots}\, , if a = b. The decimal has: • An initial transient of max(ab) digits after the decimal point. Some or all of the digits in the transient can be zeros. • A subsequent repetend which is the same as that for the fraction . For example = 0.03: • a = 2, b = 0, and the other factors • there are 2 initial non-repeating digits, 03; and • there are 6 repeating digits, 571428, the same amount as has. ==Converting repeating decimals to fractions==
Converting repeating decimals to fractions
Given a repeating decimal, it is possible to calculate the fraction that produces it. For example: : Another example: : A shortcut The procedure below can be applied in particular if the repetend has n digits, all of which are 0 except the final one which is 1. For instance for n = 7: :\begin{align} x &= 0.000000100000010000001\ldots \\ 10^7x &= 1.000000100000010000001\ldots \\ \left(10^7-1\right)x=9999999x &= 1 \\ x &= \frac{1}{10^7-1} = \frac{1}{9999999} \end{align} So this particular repeating decimal corresponds to the fraction , where the denominator is the number written as n 9s. Knowing just that, a general repeating decimal can be expressed as a fraction without having to solve an equation. For example, one could reason: : \begin{align} 7.48181818\ldots & = 7.3 + 0.18181818\ldots \\[8pt] & = \frac{73}{10}+\frac{18}{99} = \frac{73}{10} + \frac{9\cdot2}{9\cdot 11} = \frac{73}{10} + \frac{2}{11} \\[12pt] & = \frac{11\cdot73 + 10\cdot2}{10\cdot 11} = \frac{823}{110} \end{align} or : \begin{align} 11.18867924528301886792452830\ldots & = 11 + 0.18867924528301886792452830\ldots \\[8pt] & = 11 + \frac{10}{53} = \frac{11\cdot53 + 10}{53} = \frac{593}{53} \end{align} It is possible to get a general formula expressing a repeating decimal with an n-digit period (repetend length), beginning right after the decimal point, as a fraction: :\begin{align} x &= 0.\overline{a_1 a_2 \cdots a_n} \\ 10^n x &= a_1 a_2 \cdots a_n.\overline{a_1 a_2 \cdots a_n} \\[5pt] \left(10^n - 1\right)x = 99 \cdots 99x &= a_1 a_2 \cdots a_n \\[5pt] x &= \frac{a_1 a_2 \cdots a_n}{10^n - 1} = \frac{a_1 a_2 \cdots a_n}{99 \cdots 99} \end{align} More explicitly, one gets the following cases: If the repeating decimal is between 0 and 1, and the repeating block is n digits long, first occurring right after the decimal point, then the fraction (not necessarily reduced) will be the integer number represented by the n-digit block divided by the one represented by n 9s. For example, • 0.444444... = since the repeating block is 4 (a 1-digit block), • 0.565656... = since the repeating block is 56 (a 2-digit block), • 0.012012... = since the repeating block is 012 (a 3-digit block); this further reduces to . • 0.999999... = = 1, since the repeating block is 9 (also a 1-digit block) If the repeating decimal is as above, except that there are k (extra) digits 0 between the decimal point and the repeating n-digit block, then one can simply add k digits 0 after the n digits 9 of the denominator (and, as before, the fraction may subsequently be simplified). For example, • 0.000444... = since the repeating block is 4 and this block is preceded by 3 zeros, • 0.005656... = since the repeating block is 56 and it is preceded by 2 zeros, • 0.00012012... = = since the repeating block is 012 and it is preceded by 2 zeros. Any repeating decimal not of the form described above can be written as a sum of a terminating decimal and a repeating decimal of one of the two above types (actually the first type suffices, but that could require the terminating decimal to be negative). For example, • 1.23444... = 1.23 + 0.00444... = + = + = • or alternatively 1.23444... = 0.79 + 0.44444... = + = + = • 0.3789789... = 0.3 + 0.0789789... = + = + = = • or alternatively 0.3789789... = −0.6 + 0.9789789... = − + 978/999 = − + = = An even faster method is to ignore the decimal point completely and go like this • 1.23444... = = (denominator has one 9 and two 0s because one digit repeats and there are two non-repeating digits after the decimal point) • 0.3789789... = = (denominator has three 9s and one 0 because three digits repeat and there is one non-repeating digit after the decimal point) It follows that any repeating decimal with period n, and k digits after the decimal point that do not belong to the repeating part, can be written as a (not necessarily reduced) fraction whose denominator is (10n − 1)10k. Conversely the period of the repeating decimal of a fraction will be (at most) the smallest number n such that 10n − 1 is divisible by d. For example, the fraction has d = 7, and the smallest k that makes 10k − 1 divisible by 7 is k = 6, because 999999 = 7 × 142857. The period of the fraction is therefore 6. In compressed form The following picture suggests kind of compression of the above shortcut. Thereby \mathbf{I} represents the digits of the integer part of the decimal number (to the left of the decimal point), \mathbf{A} makes up the string of digits of the preperiod and \#\mathbf{A} its length, and \mathbf{P} being the string of repeated digits (the period) with length \#\mathbf{P} which is nonzero. In the generated fraction, the digit 9 will be repeated \#\mathbf{P} times, and the digit 0 will be repeated \#\mathbf{A} times. Note that in the absence of an integer part in the decimal, \mathbf{I} will be represented by zero, which being to the left of the other digits, will not affect the final result, and may be omitted in the calculation of the generating function. Examples: \begin{array}{lllll} 3.254444\ldots &=3.25\overline{4} &= \begin{Bmatrix} \mathbf{I}=3&\mathbf{A}=25&\mathbf{P}=4\\ &\#\mathbf{A}=2&\#\mathbf{P}=1 \end{Bmatrix} &=\dfrac{3254-325}{900}&=\dfrac{2929}{900} \\ \\0.512512\ldots &=0.\overline{512} &= \begin{Bmatrix} \mathbf{I}=0&\mathbf{A}=\emptyset&\mathbf{P}=512\\ &\#\mathbf{A}=0&\#\mathbf{P}=3 \end{Bmatrix} &=\dfrac{512-0}{999}&=\dfrac{512}{999} \\ \\1.09191\ldots &=1.0\overline{91} &= \begin{Bmatrix} \mathbf{I}=1&\mathbf{A}=0&\mathbf{P}=91\\ &\#\mathbf{A}=1&\#\mathbf{P}=2 \end{Bmatrix} &=\dfrac{1091-10}{990}&=\dfrac{1081}{990} \\ \\1.333\ldots &=1.\overline{3} &= \begin{Bmatrix} \mathbf{I}=1&\mathbf{A}=\emptyset&\mathbf{P}=3\\ &\#\mathbf{A}=0&\#\mathbf{P}=1 \end{Bmatrix} &=\dfrac{13-1}{9}&=\dfrac{12}{9}&=\dfrac{4}{3} \\ \\0.3789789\ldots &=0.3\overline{789} &= \begin{Bmatrix} \mathbf{I}=0&\mathbf{A}=3&\mathbf{P}=789\\ &\#\mathbf{A}=1&\#\mathbf{P}=3 \end{Bmatrix} &=\dfrac{3789-3}{9990}&=\dfrac{3786}{9990}&=\dfrac{631}{1665} \end{array} The symbol \emptyset in the examples above denotes the absence of digits of part \mathbf{A} in the decimal, and therefore \#\mathbf{A}=0 and a corresponding absence in the generated fraction. ==Repeating decimals as infinite series==
Repeating decimals as infinite series
A repeating decimal can also be expressed as an infinite series. That is, a repeating decimal can be regarded as the sum of an infinite number of rational numbers. To take the simplest example, :0.\overline{1} = \frac{1}{10} + \frac{1}{100} + \frac{1}{1000} + \cdots = \sum_{n=1}^\infty \frac{1}{10^n} The above series is a geometric series with the first term as and the common factor . Because the absolute value of the common factor is less than 1, we can say that the geometric series converges and find the exact value in the form of a fraction by using the following formula where a is the first term of the series and r is the common factor. :\frac{a}{1-r} = \frac{\frac{1}{10}}{1-\frac{1}{10}} = \frac{1}{10-1} = \frac{1}{9} Similarly, :\begin{align} 0.\overline{142857} &= \frac{142857}{10^6} + \frac{142857}{10^{12}} + \frac{142857}{10^{18}} + \cdots = \sum_{n=1}^\infty \frac{142857}{10^{6n}} \\[6px] \implies &\quad \frac{a}{1-r} = \frac{\frac{142857}{10^6}}{1-\frac{1}{10^6}} = \frac{142857}{10^6-1} = \frac{142857}{999999} = \frac17 \end{align} ==Multiplication and cyclic permutation==
Multiplication and cyclic permutation
The cyclic behavior of repeating decimals in multiplication also leads to the construction of integers which are cyclically permuted when multiplied by certain numbers. For example, . 102564 is the repetend of and 410256 the repetend of . ==Other properties of repetend lengths==
Other properties of repetend lengths
Various properties of repetend lengths (periods) are given by Mitchell and Dickson. • The period of for integer k is always ≤ k − 1. • If p is prime, the period of divides evenly into p − 1. • If k is composite, the period of is strictly less than k − 1. • The period of , for c coprime to k, equals the period of . • If k = 2a·5bn where n > 1 and n is not divisible by 2 or 5, then the length of the transient of is max(ab), and the period equals r, where r is the multiplicative order of 10 mod n, that is the smallest integer such that . • If p, p′, p″,... are distinct primes, then the period of equals the lowest common multiple of the periods of , , ,.... • If k and k′ have no common prime factors other than 2 or 5, then the period of equals the least common multiple of the periods of and . • For prime p, if ::\text{period}\left(\frac{1}{p}\right)= \text{period}\left(\frac{1}{p^2}\right)= \cdots = \text{period}\left(\frac{1}{p^m}\right) :for some m, but ::\text{period}\left(\frac{1}{p^m}\right) \ne \text{period}\left(\frac {1}{p^{m+1}}\right), :then for c ≥ 0 we have ::\text{period}\left(\frac{1}{p^{m+c}}\right) = p^c \cdot \text{period}\left(\frac{1}{p}\right). • If p is a proper prime ending in a 1, that is, if the repetend of is a cyclic number of length p − 1 and p = 10h + 1 for some h, then each digit 0, 1, ..., 9 appears in the repetend exactly h =  times. For some other properties of repetends, see also. ==Extension to other bases==
Extension to other bases
Various features of repeating decimals extend to the representation of numbers in all other integer bases, not just base 10: • Every real number can be represented as an integer part followed by a radix point (the generalization of a decimal point to non-decimal systems) followed by a finite or infinite number of digits. • If the base is an integer, a terminating sequence obviously represents a rational number. • A rational number has a terminating sequence if all the prime factors of the denominator of the fully reduced fractional form are also factors of the base. These numbers make up a dense set in and . • If the positional numeral system is a standard one, that is it has base ::b\in\Z\smallsetminus\{-1,0,1\} :combined with a consecutive set of digits ::D:=\{d_1, d_1+1, \dots, d_r\} :with , and , then a terminating sequence is obviously equivalent to the same sequence with non-terminating repeating part consisting of the digit 0. If the base is positive, then there exists an order homomorphism from the lexicographical order of the right-sided infinite strings over the alphabet into some closed interval of the reals, which maps the strings and with and to the same real number – and there are no other duplicate images. In the decimal system, for example, there is 0. = 1. = 1; in the balanced ternary system there is 0. = 1. = . • A rational number has an indefinitely repeating sequence of finite length , if the reduced fraction's denominator contains a prime factor that is not a factor of the base. If is the maximal factor of the reduced denominator which is coprime to the base, is the smallest exponent such that divides . It is the multiplicative order of the residue class which is a divisor of the Carmichael function which in turn is smaller than . The repeating sequence is preceded by a transient of finite length if the reduced fraction also shares a prime factor with the base. A repeating sequence ::\left(0.\overline{A_1A_2\ldots A_\ell}\right)_b :represents the fraction ::\frac{( A_1A_2\ldots A_\ell)_b}{b^\ell-1}. • An irrational number has a representation of infinite length that is not, from any point, an indefinitely repeating sequence of finite length. For example, in duodecimal, = 0.6, = 0.4, = 0.3 and = 0.2 all terminate; = 0. repeats with period length 4, in contrast with the equivalent decimal expansion of 0.2; = 0. has period 6 in duodecimal, just as it does in decimal. If is an integer base and is an integer, then :\frac{1}{k} = \frac{1}{b} + \frac{(b-k)^1}{b^2} + \frac{(b-k)^2}{b^3} + \frac{(b-k)^3}{b^4} + \cdots + \frac{(b-k)^{N-1}}{b^N} + \cdots = \frac1b \frac1{1-\frac{b-k}b}. For example 1/7 in duodecimal: \frac17 = \left(\frac1{10^{\phantom1}} + \frac5{10^2} + \frac{21}{10^3} + \frac{A5}{10^4} + \frac{441}{10^5} + \frac{1985}{10^6} + \cdots \right)_\text{base 12} which is 0.base12. 10base12 is 12base10, 102base12 is 144base10, 21base12 is 25base10, A5base12 is 125base10. Algorithm for positive bases For a rational (and base ) there is the following algorithm producing the repetend together with its length: function b_adic(b,p,q) // b ≥ 2; 0 The first highlighted line calculates the digit . The subsequent line calculates the new remainder of the division modulo the denominator . As a consequence of the floor function floor we have : \frac{b p}{q} - 1 \; \; thus : b p - q and : z q \le b p\quad \implies \quad 0 \le b p - z q =: p' \,. Because all these remainders are non-negative integers less than , there can be only a finite number of them with the consequence that they must recur in the while loop. Such a recurrence is detected by the associative array occurs. The new digit is formed in the yellow line, where is the only non-constant. The length of the repetend equals the number of the remainders (see also section Every rational number is either a terminating or repeating decimal). ==Table of values==
Table of values
code displays tables side by side when window width allows it --> Thereby fraction is the unit fraction and 10 is the length of the (decimal) repetend. The lengths 10(n) of the decimal repetends of , n = 1, 2, 3, ..., are: :0, 0, 1, 0, 0, 1, 6, 0, 1, 0, 2, 1, 6, 6, 1, 0, 16, 1, 18, 0, 6, 2, 22, 1, 0, 6, 3, 6, 28, 1, 15, 0, 2, 16, 6, 1, 3, 18, 6, 0, 5, 6, 21, 2, 1, 22, 46, 1, 42, 0, 16, 6, 13, 3, 2, 6, 18, 28, 58, 1, 60, 15, 6, 0, 6, 2, 33, 16, 22, 6, 35, 1, 8, 3, 1, 18, 6, 6, 13, 0, 9, 5, 41, 6, 16, 21, 28, 2, 44, 1, 6, 22, 15, 46, 18, 1, 96, 42, 2, 0... . For comparison, the lengths 2(n) of the binary repetends of the fractions , n = 1, 2, 3, ..., are: :0, 0, 2, 0, 4, 2, 3, 0, 6, 4, 10, 2, 12, 3, 4, 0, 8, 6, 18, 4, 6, 10, 11, 2, 20, 12, 18, 3, 28, 4, 5, 0, 10, 8, 12, 6, 36, 18, 12, 4, 20, 6, 14, 10, 12, 11, ... (=[n], if n not a power of 2 else =0). The decimal repetends of , n = 1, 2, 3, ..., are: :0, 0, 3, 0, 0, 6, 142857, 0, 1, 0, 09, 3, 076923, 714285, 6, 0, 0588235294117647, 5, 052631578947368421, 0, 047619, 45, 0434782608695652173913, 6, 0, 384615, 037, 571428, 0344827586206896551724137931, 3, 032258064516129, 0, 03, 2941176470588235, 285714... . The decimal repetend lengths of , p = 2, 3, 5, ... (nth prime), are: :0, 1, 0, 6, 2, 6, 16, 18, 22, 28, 15, 3, 5, 21, 46, 13, 58, 60, 33, 35, 8, 13, 41, 44, 96, 4, 34, 53, 108, 112, 42, 130, 8, 46, 148, 75, 78, 81, 166, 43, 178, 180, 95, 192, 98, 99, 30, 222, 113, 228, 232, 7, 30, 50, 256, 262, 268, 5, 69, 28, 141, 146, 153, 155, 312, 79... . The least primes p for which has decimal repetend length n, n = 1, 2, 3, ..., are: :3, 11, 37, 101, 41, 7, 239, 73, 333667, 9091, 21649, 9901, 53, 909091, 31, 17, 2071723, 19, 1111111111111111111, 3541, 43, 23, 11111111111111111111111, 99990001, 21401, 859, 757, 29, 3191, 211, 2791, 353, 67, 103, 71, 999999000001, 2028119, 909090909090909091, 900900900900990990990991, 1676321, 83, 127, 173... . The least primes p for which has n different cycles (), n = 1, 2, 3, ..., are: :7, 3, 103, 53, 11, 79, 211, 41, 73, 281, 353, 37, 2393, 449, 3061, 1889, 137, 2467, 16189, 641, 3109, 4973, 11087, 1321, 101, 7151, 7669, 757, 38629, 1231, 49663, 12289, 859, 239, 27581, 9613, 18131, 13757, 33931... . ==See also==
tickerdossier.comtickerdossier.substack.com