Re: Rational Numbers/Irrational Numbers



dta@xxxxxxxx wrote:


1/1, 1/2, 2/1, 3/1, 2/2, 1/3, 1/4, 2/3, ...

I'm not seeing the algorithm behind the sequence above. Could you
state it explicitly?

The concept I understand (the mapping), just I don't see how the
sequence above is generated.

It's not really an "algorithm" but an ordering. The ordering
is given, on the set of (positive) rational numbers in reduced
form h/k with (h,k)=1) by declaring that h1/k1 preceeds h2/k2
if h1+k1 < h2+k2. In the case h1+k1 = h2+k2,then we declare
that h1/k1 preceeds h2/k2 if h1<h2.

In other words, we first sort first on the sum of the numerator
and denominator and then sort by numerators. (This is taken
from Ivan Niven's monograph.)

Bart

--
The man without a .sig
.



Relevant Pages

  • Re: Chex Wat: Pi is "random" and "not predictable"?
    ... their output sequence. ... The fact is that an algorithm can also be used to ... first was about the probability of finding an apparent match. ... They may be matched within e at an infinite ...
    (talk.origins)
  • Re: an true information theory
    ... > outputs, and figures out that the algorithm must be A1, there ... > there is an infinite number of stages n such that P's guess at ... > sequence of algorithms, strike off every algorithm that appears ... I've read that quantum computing may improve tractability but ...
    (sci.math)
  • Re: best approach to generate random number in java
    ... > to the same initial state, it will produce the same sequence. ... There is a difference between the determinism of an algorithm and the ... > quest to locate the algorithm, using, say, a future quantum computer ... generate all possible binary strings of length 100. ...
    (comp.lang.java.programmer)
  • Re: Q: Algorithm M vs. P of Knuths book
    ... >> another sequence in such a manner that the relationship ... probabilities depends on the size of the array. ... >> to the region of the array), I am not yet sure that Algorithm ... >> venture to say that for most practical situations the ...
    (sci.crypt)
  • Re: Chex Wat: Pi is "random" and "not predictable"?
    ... the sequence appears to be part of a "normal" number or not. ... This compression algorithm can then be used to predict ... If this prediction succeeds, it gains predictive ... predictive value as the string in question increases in size with each ...
    (talk.origins)