Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.independent

Topic: Generating coprime pairs (other interpretation)
Replies: 1   Last Post: Feb 9, 2013 8:35 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ciekaw

Posts: 13
Registered: 11/24/12
Generating coprime pairs (other interpretation)
Posted: Feb 2, 2013 9:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Modified Calkin-Wilf tree (part)

1

2/1

1 0

3/2 3/1

1 0 1 0

5/3 5/2 4/3 4/1


System modified Calkin-Wilf tree binary-coded


A/B

1 0

(A+B)/A (A+B)/B


More information:
http://www.narval.republika.pl/treecoprime.jpg



Example generating coprime pairs:

Step 1

Select any number of natural.
For example, C = 167

Step 2

Write binary form C = 10100111


Step 3

Calculate or read from the tree

1

2/1

1 0

3/1

1 0

4/3

1 0

7/3

1 0

10/3

1 0

13/10

1 0

23/13

1 0

36/23


My program:
http://www.narval.republika.pl/coprime.exe



Regards




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.