Re: Square roots - decimal expansions --



> JEMebius <jemebius@xxxxxxxxx> writes in article
> <42DD4FB8.6060802@xxxxxxxxx> dated Tue, 19 Jul 2005
> 20:08:40 +0100:
> >BTW, for palindromic decimal expansions just take a
> palindromic string
> >of digits, and interpret is as a decimal expansion
> or as the period of a
> >decimal expansion.
> >It equals some rational number p/q, but there is no
> general rule to
> >predict from given p and q if p/q has a palindromic
> period.
>
> Hmmmm, I think I can write one.
>
> First count the powers of 2 and of 5 in q. Whichever
> of these is greater,
> call m-1 (meaning m is one more than that number).
> m-1 is the number of
> non-repeating digits after the decimal.
>
> Find the first n such that q|(10^n-10^m)
>
> Let p' = p * (10^n-10^m)/q mod (10^(n-m)-1)
>
> If p' is a (n-m) digit palindrome, p/q has a
> palindromic period.
>
> --Keith Lewis klewis {at} mitre.org
> The above may not (yet) represent the opinions of my
> employer.

I'm too weak, an example please!
.



Relevant Pages

  • Re: Square roots - decimal expansions --
    ... and interpret is as a decimal expansion ... >> non-repeating digits after the decimal. ... p' is a 5-digit palindrome; therefore p/q contains a repeating palindrome. ...
    (sci.math)
  • Re: Square roots - decimal expansions --
    ... and interpret is as a decimal expansion or as the period of a ... >predict from given p and q if p/q has a palindromic period. ... non-repeating digits after the decimal. ... If p' is a digit palindrome, p/q has a palindromic period. ...
    (sci.math)
  • Re: Patterns in pi, copyright law, and philosophy
    ... The digits of pi are widely believed to be "normal", in the sense that every n digit combination of digits is equally likely, and pass all reasonable tests of randomness. ... The mean length of the offset must at least be equal or greater than the length of the string you are looking for. ... Pi has an infinite representation as a decimal. ... finite string of digits occurs within the decimal expansion of pi, ...
    (sci.math)
  • Re: Real Number Paradox?
    ... >> that the elements of A all have a finite decimal expansion. ... >Yes, X is empty ... "the element of a with i three digits" was certainly ... >> infinite sequence of uncountable sets can diverge to 0. ...
    (sci.math)
  • Re: irrational number continuum
    ... 1/3 requires an infinitenumberof digits, ... longer has an infinite decimal expansion. ... square root od 2 in order to do useful calculations with that "notion" ... entity that that decimal representation  partially ...
    (sci.logic)

Quantcast