Cyclic number
A cyclic number is an integer for which cyclic permutations of the digits are successive integer multiples of the number.[src] The most widely known is the six-digit number 142857, whose first six integer multiples are :142857 × 1 = 142857 :142857 × 2 = 285714 :142857 × 3 = 428571 :142857 × 4 = 571428 :142857 × 5 = 714285 :142857 × 6 = 857142[src]
A cyclic number is an integer for which cyclic permutations of the digits are successive integer multiples of the number.[src] The most widely known is the six-digit number 142857, whose first six integer multiples are 142857 × 1 = 142857 142857 × 2 = 285714 142857 × 3 = 428571 142857 × 4 = 571428 142857 × 5 = 714285 142857 × 6 = 857142 076923 × 1 = 076923 076923 × 3 = 230769 076923 × 4 = 307692 076923 × 9 = 692307 076923 × 10 = 769230 076923 × 12 = 923076 The following trivial cases are typically excluded: single digits, e.g.: 5 repeated digits, e.g.: 555 repeated cyclic numbers, e.g.: 142857142857 If leading zeros are not permitted on numerals, then 142857 is the only cyclic number in decimal, due to the necessary structure given in the next section.[src] Allowing leading zeros, the sequence of cyclic numbers begins: (10 6 − 1) / 7 = 142857 (6 digits) (10 16 − 1) / 17 = 0588235294117647 (16 digits) (10 18 − 1) / 19 = 052631578947368421 (18 digits) (10 22 − 1) / 23 = 0434782608695652173913 (22 digits) (10 28 − 1) / 29 = 0344827586206896551724137931 (28 digits) (10 46 − 1) / 47 = 0212765957446808510638297872340425531914893617 (46 digits) (10 58 − 1) / 59 = 0169491525423728813559322033898305084745762711864406779661 (58 digits) (10 60 − 1) / 61 = 016393442622950819672131147540983606557377049180327868852459 (60 digits) (10 96 − 1) / 97 = 010309278350515463917525773195876288659793814432989690721649484536082474226804123711340206185567 (96 digits) 1/7 = 0.142857 142857...[src] Multiples of these fractions exhibit cyclic permutation: 1/7 = 0.142857 142857...[src] 2/7 = 0.285714 285714...[src] 3/7 = 0.428571 428571...[src] 4/7 = 0.571428 571428...[src] 5/7 = 0.714285 714285...[src] 6/7 = 0.857142 857142...[src] For example, the case b = 10, p = 7 gives the cyclic number 142857, and the case b = 12, p = 5 gives the cyclic number 2497.[src] Not all values of p will yield a cyclic number using this formula; for example, the case b = 10, p = 13 gives 076923076923, and the case b = 12, p = 19 gives 076B45076B45076B45.[src] These failed cases will always contain a repetition of digits (possibly several).[src] The first values of p for which this formula produces cyclic numbers in decimal (b = 10) are 7, 17, 19, 23, 29, 47, 59, 61, 97, 109, 113, 131, 149, 167, 179, 181, 193, 223, 229, 233, 257, 263, 269, 313, 337, 367, 379, 383, 389, 419, 433, 461, 487, 491, 499, 503, 509, 541, 571, 577, 593, 619, 647, 659, 701, 709, 727, 743, 811, 821, 823, 857, 863, 887, 937, 941, 953, 971, 977, 983, ...[src] For b = 12 (duodecimal), these ps are 5, 7, 17, 31, 41, 43, 53, 67, 101, 103, 113, 127, 137, 139, 149, 151, 163, 173, 197, 223, 257, 269, 281, 283, 293, 317, 353, 367, 379, 389, 401, 449, 461, 509, 523, 547, 557, 569, 571, 593, 607, 617, 619, 631, 641, 653, 691, 701, 739, 751, 761, 773, 787, 797, 809, 821, 857, 881, 929, 953, 967, 977, 991, ...[src] For b = 2 (binary), these ps are 3, 5, 11, 13, 19, 29, 37, 53, 59, 61, 67, 83, 101, 107, 131, 139, 149, 163, 173, 179, 181, 197, 211, 227, 269, 293, 317, 347, 349, 373, 379, 389, 419, 421, 443, 461, 467, 491, 509, 523, 541, 547, 557, 563, 587, 613, 619, 653, 659, 661, 677, 701, 709, 757, 773, 787, 797, 821, 827, 829, 853, 859, 877, 883, 907, 941, 947, ...[src] For b = 3 (ternary), these ps are 2, 5, 7, 17, 19, 29, 31, 43, 53, 79, 89, 101, 113, 127, 137, 139, 149, 163, 173, 197, 199, 211, 223, 233, 257, 269, 281, 283, 293, 317, 331, 353, 379, 389, 401, 449, 461, 463, 487, 509, 521, 557, 569, 571, 593, 607, 617, 631, 641, 653, 677, 691, 701, 739, 751, 773, 797, 809, 811, 821, 823, 857, 859, 881, 907, 929, 941, 953, 977, ...[src] There are no such ps in the hexadecimal system.[src] The known pattern to this sequence comes from algebraic number theory, specifically, this sequence is the set of primes p such that b is a primitive root modulo p.[src] A conjecture of Emil Artin is that this sequence contains 37.395..% of the primes (for b in ).[src] Let t = 0.[src] Let r = 1.[src] Let n = 0.[src] loop: Let t = t + 1 Let x = r ⋅ b Let d = int(x / p) Let r = x mod p Let n = n ⋅ b + d If r ≠ 1 then repeat the loop.[src] if t = p − 1 then n is a cyclic number.[src] This procedure works by computing the digits of 1/p in base b, by long division.[src] r is the remainder at each step, and d is the digit produced.[src] The step n = n ⋅ b + d serves simply to collect the digits.[src] For computers not capable of expressing very large integers, the digits may be output or collected in another way.[src] If t ever exceeds p/2, then the number must be cyclic, without the need to compute the remaining digits.[src] When multiplied by their generating prime, the result is a sequence of b − 1 digits, where b is the base (e.g.[src] 10 in decimal).[src] For example, in decimal, 142857 × 7 = 999999.[src] When split into groups of equal length (of two, three, four, etc...[src] digits), and the groups are added, the result is a sequence of b − 1 digits.[src] For example, 14 + 28 + 57 = 99, 142 + 857 = 999, 1428 + 5714+ 2857 = 9999, etc.[src] ...[src] This is a special case of Midy's theorem.[src] All cyclic numbers are divisible by b − 1 where b is the base (e.g.[src] 9 in decimal) and the sum of the remainder is a multiple of the divisor.[src] (This follows from the previous point.) In ternary (b = 3), the case p = 2 yields 1 as a cyclic number.[src] While single digits may be considered trivial cases, it may be useful for completeness of the theory to consider them only when they are generated in this way.[src] It can be shown that no cyclic numbers (other than trivial single digits, i.e.[src] p = 2) exist in any numeric base which is a perfect square, that is, base 4, 9, 16, 25, etc.[src] ==Further reading== Gardner, Martin.[src] Mathematical Circus: More Puzzles, Games, Paradoxes and Other Mathematical Entertainments From Scientific American.[src] New York: The Mathematical Association of America, 1979.[src] pp. 111–122.[src] Kalman, Dan; 'Fractions with Cycling Digit Patterns' The College Mathematics Journal, Vol.[src] 27, No.[src] 2.[src] (Mar., 1996), pp. 109–115.[src] Leslie, John.[src] "The Philosophy of Arithmetic: Exhibiting a Progressive View of the Theory and Practice of ....", Longman, Hurst, Rees, Orme, and Brown, 1820, Wells, David; "The Penguin Dictionary of Curious and Interesting Numbers", Penguin Press.[src] ==External links==[src]
56 sentences · 56 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Cyclic number." encyclopegia.org, 2026, https://encyclopegia.org/wiki/cyclic-number. Accessed 01 December 2026.
Chicago
"Cyclic number." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/cyclic-number.
APA
encyclopegia.org. (2026). Cyclic number. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/cyclic-number
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON