All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 All rational numbers in (Posted on 2016-08-26)
The infinite sequence is defined as follows:
a1=1
for n ≥ 1, a2n= an+1
a2n+1=1/ a2n

Prove that every positive rational number occurs in the sequence exactly once.

 No Solution Yet Submitted by Ady TZIDON No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
 re: From N/D to n | Comment 7 of 10 |
(In reply to From N/D to n by Jer)

That works for me.

The only thing that remains to be proved is that Jer's reverse algorithm must terminate, and that is very clear,  as every subtraction makes the (numerator + denominator) smaller, the reciprocal leaves the (numerator + denominator) unchanged, and we cannot cannot do two reciprocal operations in a row.

It therefore follows that each rational number appears in the sequence.  And the fact that at each step there is only one option available (as the fraction must either be greater or less than 1) means that a given rational number can appear in the sequence only once.

 Posted by Steve Herman on 2016-08-29 07:35:27

 Search: Search body:
Forums (0)