Home

> urticator.net
  Search

  About This Site
> Domains
  Glue
  Stories

  Computers
  Driving
  Games
  Humor
  Law
  Math
> Numbers
  Science

  Powers and Fractions
  Notes About Squares
  Decimal Expansions
> Repeat Length Again
  Number Maze
  Primes
  Divisibility
  Intrinsic Nature of Primes
  Other Topics
  Other Topics (2)

  Multiplication in Base 7
  The Exceptions Explained
  How Many Exceptions?
  The Usual Random Thoughts

Repeat Length Again

I found the last two pieces of the repeat length puzzle in the book Dead Reckoning, and now the whole thing is perfectly clear to me. If you want to know the repeat length of some fraction m/n, here's what you should do.

  1. Make sure the fraction is in lowest terms. After that, the number m is irrelevant.
  2. Factor the number n and organize it into prime-power components pk. As often happens in number theory, the components work independently.
  3. Throw out the components with p = 2 and 5, or, more generally, with primes that are factors of the number base. (If you're interested, the number of non-repeating digits is equal to the number of powers of the number base that it takes to cover these components. In base 10, with components 2a and 5b, the number is max(a,b), but in other bases the formula can be more complex. In base 12, for example, the fraction 1/40 has two non-repeating digits.)
  4. Use the following rule to reduce the prime powers to simple primes.

    len(pk) = pk-1 len(p)

    The rule does have exceptions, but they're unbelievably rare; the only one you need to remember is that for p = 3, the first power of p gets lost on the way through the len sign, so that the exponent is k-2 instead of k-1.

  5. Fill in known values for len(p). As I explained in Repeat Length, len(p) always divides evenly into p-1; and as I'll explain later, different divisors have different probabilities; but the actual values are unpredictable, you just have to know them, or work them out.
  6. The repeat length of m/n is the least common multiple of the lengths for the various prime powers.

Now let me tell you the thing that boggled my mind and guaranteed I'd write an essay on the subject. Just how rare are those unbelievably rare exceptions? Well, the first exception after 3 is 487! That one was mentioned in Dead Reckoning; to find the next I had to resort to the On-Line Encyclopedia of Integer Sequences, specifically A045616. And, the next exception after 487 is 56598313! And that's all the exceptions anyone has ever found; the next one must be at least 21011.

So why 3? Why 487? I eventually figured out an answer that I found satisfactory, but before I can explain it, I need to digress and tell you all about multiplication in base 7. After that, the rest will be easy.

next

 

  See Also

  Dead Reckoning
  Duodecimal
  Exceptions Explained, The
  Favorite Things

@ April (2006)