Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access to The American Mathematical Monthly.

Similar documents
Refining the Stern Diatomic Sequence

Identifying an m-ary Partition Identity through an m-ary Tree

arxiv: v1 [math.nt] 4 Nov 2017

Exploring the Calkin-Wilf Tree: Subtrees and the Births of Numbers

Sequences that satisfy a(n a(n)) = 0

ARITHMETIC PROPERTIES FOR HYPER M ARY PARTITION FUNCTIONS

ON THE NUMBER OF HYPER m-ary PARTITIONS. Tom Edgar Department of Mathematics, Pacific Lutheran University, Tacoma, Washington

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission.

#A19 INTEGERS 17 (2017) A GENERALIZED STERN-BROCOT TREE

COMPOSITIONS WITH A FIXED NUMBER OF INVERSIONS

CLASS-IX MATHEMATICS. For. Pre-Foundation Course CAREER POINT

The Kth M-ary Partition Function

Acta Mathematica Academiae Paedagogicae Nyíregyháziensis 22 (2006), ISSN

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission.

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission.

Constant Time Generation of Set Partitions

Universal Juggling Cycles

Pattern avoidance in compositions and multiset permutations

Math Review. for the Quantitative Reasoning measure of the GRE General Test

Lecture 17: Trees and Merge Sort 10:00 AM, Oct 15, 2018

A REFINED ENUMERATION OF p-ary LABELED TREES

CANADIAN MATHEMATICAL OLYMPIAD 2010 PROBLEMS AND SOLUTIONS

E. DROR, W. G. DWYER AND D. M. KAN

On Stern s Diatomic Sequence 0,1,1,2,1,3,2,3,1,4,...

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission.

TAKING THE CONVOLUTED OUT OF BERNOULLI CONVOLUTIONS: A DISCRETE APPROACH

N M L Nova S. Scotia League. Math. Game One SOLUTIONS

arxiv: v2 [math.nt] 4 Jun 2016

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

SOME HINTS AND ANSWERS TO 18.S34 SUPPLEMENTARY PROBLEMS (Fall 2007)

2008 Euclid Contest. Solutions. Canadian Mathematics Competition. Tuesday, April 15, c 2008 Centre for Education in Mathematics and Computing

Properties of the Integers

k-protected VERTICES IN BINARY SEARCH TREES

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Polynomials Characterizing Hyper b-ary Representations

Math 3 Variable Manipulation Part 4 Polynomials B COMPLEX NUMBERS A Complex Number is a combination of a Real Number and an Imaginary Number:

Full file at

Spherical Venn Diagrams with Involutory Isometries

ON DIVISIBILITY OF SOME POWER SUMS. Tamás Lengyel Department of Mathematics, Occidental College, 1600 Campus Road, Los Angeles, USA.

1 Basic Combinatorics

The College Mathematics Journal, Vol. 16, No. 2. (Mar., 1985), pp

CHAPTER 8: EXPLORING R

The Two Faces of Infinity Dr. Bob Gardner Great Ideas in Science (BIOL 3018)

SMT 2013 Power Round Solutions February 2, 2013

Article 12 INTEGERS 11A (2011) Proceedings of Integers Conference 2009 RECURSIVELY SELF-CONJUGATE PARTITIONS

Algorithms and Data Structures 2016 Week 5 solutions (Tues 9th - Fri 12th February)

On Minimal Words With Given Subword Complexity

A Note about the Pochhammer Symbol

TAKING THE CONVOLUTED OUT OF BERNOULLI CONVOLUTIONS: A DISCRETE APPROACH

Tewodros Amdeberhan, Dante Manna and Victor H. Moll Department of Mathematics, Tulane University New Orleans, LA 70118

The Mandelbrot Set and the Farey Tree

Hanoi Graphs and Some Classical Numbers

Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access to The American Mathematical Monthly.

On the discrepancy of circular sequences of reals

N E W S A N D L E T T E R S

Largest Values of the Stern Sequence, Alternating Binary Expansions and Continuants

Enumerating multiplex juggling patterns

The Generating Functions for Pochhammer

Running Modulus Recursions

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1).

The CENTRE for EDUCATION in MATHEMATICS and COMPUTING cemc.uwaterloo.ca Euclid Contest. Tuesday, April 12, 2016

EULER S THEOREM KEITH CONRAD

STRATEGIES OF PROBLEM SOLVING

What is proof? Lesson 1

Written test, 25 problems / 90 minutes

SMT 2011 General Test and Solutions February 19, F (x) + F = 1 + x. 2 = 3. Now take x = 2 2 F ( 1) = F ( 1) = 3 2 F (2)

Polyexponentials. Khristo N. Boyadzhiev Ohio Northern University Departnment of Mathematics Ada, OH

Surprising relationships connecting ploughing a field, mathematical trees, permutations, and trigonometry

Arithmetic properties of coefficients of power series expansion of. (with an appendix by Andrzej Schinzel)

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Reading Mathematical Expressions & Arithmetic Operations Expression Reads Note

The distribution of run lengths in integer compositions

Introduction to Techniques for Counting

Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission.

Math Precalculus I University of Hawai i at Mānoa Spring

41st International Mathematical Olympiad

CLASS XI Maths : Sample Paper-1

PRIMES Math Problem Set

On the parity of the Wiener index

Lesson 8: Why Stay with Whole Numbers?

CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines. Problem 1

COUNTING NUMERICAL SEMIGROUPS BY GENUS AND SOME CASES OF A QUESTION OF WILF

Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at

2018 LEHIGH UNIVERSITY HIGH SCHOOL MATH CONTEST

A Probabilistic View of Certain Weighted Fibonacci Sums

Mathematical Association of America

Enumerating split-pair arrangements

Mathematical Olympiad for Girls

On the Partitions of a Number into Arithmetic Progressions

Countability. 1 Motivation. 2 Counting

Postorder Preimages. arxiv: v3 [math.co] 2 Feb Colin Defant 1. 1 Introduction


Here, logx denotes the natural logarithm of x. Mrsky [7], and later Cheo and Yien [2], proved that iz;.(»)=^io 8 "0(i).

Optimal Tree-decomposition Balancing and Reachability on Low Treewidth Graphs

Improved Bounds on the Anti-Waring Number

Passing from generating functions to recursion relations

The Econometric Society is collaborating with JSTOR to digitize, preserve and extend access to Econometrica.

Near-domination in graphs

arxiv: v1 [math.co] 30 Mar 2013

Notes on Continued Fractions for Math 4400

Transcription:

Recounting the Rationals Author(s): Neil Calkin and Herbert S. Wilf Source: The American Mathematical Monthly, Vol. 107, No. 4 (Apr., 2000), pp. 360-363 Published by: Mathematical Association of America Stable URL: http://www.jstor.org/stable/2589182. Accessed: 24/09/2011 08:57 Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at. http://www.jstor.org/page/info/about/policies/terms.jsp JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org. Mathematical Association of America is collaborating with JSTOR to digitize, preserve and extend access to The American Mathematical Monthly. http://www.jstor.org

Proof: Since P,<(w) = (2b),,F(-n, b; 2b; 1 - w) and (2b), # 0, we require the values of w for which P,,(w) = 0. By Lemma 1, P,I(w) = 0 if and only if d'l 1d ((-wa)(1 - A))b = 0 when A = 0. da By Lemma 3, the values of A for which the n-th derivative is zero all lie on the perpendicular bisector of the line segment joining the points A = w-1 and A = 1. (Note that w # 1, since Pn(l) = (2b)n#k 0.) Thus if Pn(w) = 0, then the point A = 0 lies on this peipendicular bisector, that is, w-i and 1 are equidistant firom 0, so Iwl= 1. A relationship between the zeros of rj1(x) and those of P,,(w) can be found using similarity. For each zero ax. of rj(x), the triangle with vertices axj, i, -i in the x-plane is similar to the triangle with vertices 0, wj-1, 1 respectively, in the A-plane. It follows easily that wj = (aj + i)/(a1. - i), a familiar Mobius transformation from the real line to the unit circle. ACKNOWLEDGMENTS. I thank Kathy Driver and Peter Duren for so freely discussing their research with me, and Mike Mays and West Virginia University for the visiting appointmen that gave me the time to prepare this paper. REFERENCES 1. P. B. Borwein and W. Chen, Incomplete rational approximation in the complex plane, Constr. Approx., 11 (1995) 85-106. 2. K. A. Driver and P. L. Duren, Asymptotic zero distribution of hypergeometric polynomials, Ntumer. Algorithms, to appear. 3. K. A. Driver and P. L. Duren, Zeros of the hypergeometric polynomials F( -n, b; 2b; z), Itdag. Math. (N.S), to appear. University of the Witwatersrand, Private Bag 3, Wits, Souith Afiica, 2050 036jnr@cosmos. wits. ac.za Recounting the Rationals Neil Calkin and Herbert S. Wilf It is well known (indeed, as Paul Erdos might have said, every child knows) that the rationals are countable. However, the standard presentations of this fact do not give an explicit enumeration; rather they show how to construct an enumeration. In this note we explicitly describe a sequence b(n) with the property that every positive rational appears exactly once as b(n)/b(n + 1). Moreover, b(n) is the solution of a quite natural counting problem. Our list of the positive rational numbers begins like this: 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 1'2' 1' 3' 2' 3' 1'4'3' 5' 2' 5' 3'4' 1'5' 4' 7' 3' 8'5'7'2'7'5' Some of the interesting features of this list are 1. The denominator of each fraction is the numerator of the next one. That means that the nth rational number in the list looks like b(n)/b(n + 1) (n = 0, 1, 2,... ), where b is a certain function of the nonnegative integers 360? THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 107

whose values are fb(n)),l0 = {1,1,2,1,3,2,3,1,4,3,5,2,5,3,4,1,5,4,7,...}. 2. The function values b(n) actually count something nice. In fact, b(n) is the number of ways of writing the integer n as a sum of powers of 2, each power being used at most twice (i.e., once more than the legal limit for binary expansions). For instance, we can write 5 = 4 + 1 = 2 + 2 + 1, so there are two such ways to write 5, and therefore b(5) = 2. Let's say that b(n) is the number of hyperbinary representations of the integer n. 3. Consecutive values of this function b are always relatively prime, so that each rational occurs in reduced form when it occurs. 4. Every positive rational occurs once and only once in this list. 1 The tree of fractions. For the moment, let's forget about enumeration, and just imagine that fractions grow on the tree that is completely described, inductively, by the following two rules: Figure 1. The tree of fractions * 1is at the top of the tree, and * Each vertex. has two children: its left child is and its right child is + I i? IJJ We show the following properties of this tree. 1. The numerator and denominator at each vertex are relatively prime. This is certainly true at the top vertex. Otherwise, suppose r/s is a vertex on the highest possible level of the tree for which this is false. If r/s is a left child, then its parent is r/(s - r), which would clearly also not be a reduced fraction, and would be on a higher level, a contradiction. If r/s is a right child, then its parent is (r - s)/s, which leads to the same contradiction. U 2. Every reduced positive rational number occurs at some vertex. The rational number 1 certainly occurs. Otherwise, let r/s be, among all fractions that do not occur, one of smallest denominator, and among those the one of smallest numerator. If r > s then (r - s)/s doesn't occur either, else one of its children would be r/s, and its numerator is smaller, the denominator being the same, a contradiction. If r < s, then r/(s - r) doesn't occur April 2000] NOTES 361

either, else one of its children would be r/s, and it has a smaller denominator, a contradiction. U 3. No reduced positive rational number occurs at more than one vertex. First, the rational number 1 occurs only at the top vertex of the tree, for if not, it would be a child of some vertex r/s. But the children of r/s are r/(r + s) and (r + s)/s, neither of which can be 1. Otherwise, among all reduced rationals that occur more than once, let r/s have the smallest denominator, and among these, the smallest numerator. If r < s then r/s is a left child of two distinct vertices, at both of which r/(s - r) lives, contradicting the minimality of the denominator. The case r > s is similar. U It follows that a list of all positive rational numbers, each appearing once and only once, can be made by writing down 1/1, then the fractions on the level just below the top of the tree, reading from left to right, then the fractions on the next level down, reading from left to right, etc. We claim that if that be done, then the denominator of each fraction is the numerator of its successor. This is clear if the fraction is a left child and its successor is the right child of the same parent. If the fraction is a right child then its denominator is the same as the denominator of its parent and the numerator of its successor is the same as the numerator of the parent of its successor, hence the result follows by downward induction on the levels of the tree. Finally, the rightmost vertex of each row has denominator 1, as does the leftmost vertex of the next row, proving the claim. Thus, after we make a single sequence of the rationals by reading the successive rows of the tree as described above, the list will be in the form {f(n)/f(n + 1)}n?0 > for some f. Now, as the fractions sit in the tree, the two children of f(n)/f(n + 1) are f(2n + 1)/f(2n + 2) and f(2n + 2)/f(2n + 3). Hence from the rule of construction of the children of a parent, it must be that f(2n +1)=f(n) and f(2n+2)=f(n)+f(n+1) (n=o,1,2,...). These recurrences, together with f(o) = 1, evidently determine our function f on all nonnegative integers. We claim that f(n) = b(n), the number of hyperbinary representations of n, for all n? 0. This is true for n = 0, and suppose it is true for all integers 0, 1,., 2n. Now b(2n + 1) = b(n), because if we are given a hyperbinary expansion of 2n + 1, the "1" must appear, hence by subtracting 1 from both sides and dividing by 2, we'll get a hyperbinary representation of n. Conversely, given such an expansion of n, double each part and add a 1 to obtain a representation of 2n + 1. Furthermore, b(2n + 2) = b(n) + b(n + 1), for a hyperbinary expansion of 2n + 2 might have either two l's or no l's in it. If it has two l's, then by deleting them and dividing by 2 we obtain an expansion of n. If it has no l's, then we just divide by 2 to get an expansion of n + 1. These maps are reversible, proving the claim. It follows that b(n) and f(n) satisfy the same recurrence formulas and take the same initial values, hence they agree for all nonnegative integers. We state the final result as follows. Theorem 1. The nth rational number, in reduced form, can be taken to be b(n)/ b(n + 1), where b(n) is the number of hyperbinary representations of the integer n, for 362?? THE MATHEMATICAL ASSOCIATION OF AMERICA [Monthly 107

n = 0, 1, 2.. That is, b(n) and b(n + 1) are relatively prime, and each positive reduced rational number occurs once and only once in the list b(o)/b(1), b(1)/b(2),... Remarks. There is a large literature on the closely related subject of Stern-Brocot trees [1],[6]. In particular, an excellent introduction is in [2], and the relationship between these trees and hyperbinary partitions is explored in [4]. Our sequence {b(n)} is sequence #A002487 in [5]. We thank Neil Sloane for pointing out that still other ways of counting the rationals are in his sequences #A038568 and #A020651. Our interest in {b(n)} was piqued by a problem in Quantum, in September 1997, that asked for b(90316), and which was posted by Stan Wagon as his "Problem of the Week". In Stern's original paper [6] of 1858 there is a structure that is essentially our tree of fractions, though in a different garb, and he proved that every rational number occurs once and only once, in reduced form. However Stern did not deal with the partition function b(n). Reznick [4] studied restricted binary partition functions and observed their relationship to Stern's sequence. Nonetheless it seemed to us worthwhile to draw these two aspects together and explicitly note that the ratios of successive values of the partition function b(n) run through all of the rationals. A question: What other functions f(n) are there that have natural and intuitive definitions and also have the property that {f(n)/f(n + 1)} takes every rational value exactly once? REFERENCES 1. Achille Brocot, Calcul des rouages par approximation, nouvelle methode, Revue Chrono-mneuique 6 (1860) 186-194. 2. Ronald L. Graham, Donald E. Knuth and Oren Patashnik, Concrete Mathematics, Addison-Wesley, Reading, 1989. 3. D. H. Lehmer, On Stern's diatomic series, this MONTHLY 36 (1929) 59-67. 4. Bruce Reznick, Some binary partition functions, in Analytic Number Theory, Proceedings of a conference in honor of Paul T. Bateman, Birkhauser, Boston (1990) 451-477. 5. N. J. A. Sloane (1999), The On-Line Encyclopedia of Integer Sequences, published electronically at <http: //www.research.att.com/ - njas / sequences/>. 6. M. A. Stern, Uber eine zahlentheoretische Funktion, J. ReineAngew. Math. 55 (1858) 193-220. Clemson University, Clemson, SC 29634 calkin@math.clemson.edu University of Pennsylvania, Philadelphia, PA 19104-6395 wilf@math.upenn.edu April 2000] NOTES 363