Boas Primer Exercise 3.13 Puzzler Boas's Primer of Real Functions (4 Ed, Carus Monograph 13) is a classic text which has been read by thousands.  I don't expect to find an error in it, and I may well be misinterpreting.
In Exercise 3.13 (page 20) Boas asks "Show that there are just as many sequences of real numbers as real numbers".  [He is using informal language, but he is asking for proof that the cardinalities of the two sets are equal.  He has just proved the Schroeder-Bernstein Theorem and expects the reader to find an injection from each set to the other which will then show that a bijection exists based on the theorem.]
The solution (given at the end of the book) proceeds in a classic and expected way.  He limits his consideration to the interval from 0 to 1 based on a bijective mapping shown in another exercise. Then he easily finds an injection from the reals to the sequences of reals - just use the digit sequence of the real number between zero and one - that is a specific sequence of reals.
For his injection from the real sequences to the reals, he writes out the decimals in a "stack" and reads along the diagonals to produce one long real number (decimal expansion).
Here are his exact words:
"On the other hand, if we have a sequence of real numbers between 0 and 1, then we can prefix the digit 5 to each decimal expansion, write out the decimal 
expansions one below another, and traverse the resulting array along its diagonals (from upper right to lower left) to obtain the decimal expansion of a real number. Different sequences of real numbers generate different real numbers in this way, since the decimal we obtain cannot terminate. "
I am befuddled about the fact that he "prefixes" a 5 to each decimal expansion.  Why would one need to do that?  I don't think it accomplishes anything and the proof would go through without it.
Perhaps you think it is to avoid terminating decimals (he has earlier in the book said that terminating decimals would be avoided by only expressing them in their form as decimals ending in 99999...).  So if the diagonal process produced a terminating decimal ending in 0000000..., it might vitiate the proof by being a duplicate of the other form of terminating decimal produced by a different real sequence, hence the mapping is not an injection.
But I don't believe either type of terminating decimal could possibly come out of this diagonal process.  A decimal ending in 9s only or zeroes only, running along the diagonals as he described, would mean that all the numbers from a certain point on in the sequence had only 9s or only zeros in their decimal expansion, which we know is not the case.
Any thoughts or insights would be appreciated as this problem is keeping me up nights.
-Jonathan, about to start a Masters Program in mathematics.
 A: "But I don't believe either type of terminating decimal could possibly come out of this diagonal process. A decimal ending in 9s only or zeroes only, running along the diagonals as he described, would mean that all the numbers from a certain point on in the sequence had only 9s or only zeros in their decimal expansion, which we know is not the case"
Why do we "know" this is not the case?
A: It is not so ambiguous whether Boas is looking at the open unit interval or the closed one.  He is explicitly relying on a result from an earlier exercise to bijectively map the reals onto the unit interval before he starts.  The mapping that he has used in the earlier exercise (based on tangent or arctangent) is from the reals to the open unit interval.
Harold Boas was kind enough to just respond to my query. His exact words:
@@@@@@@@@@@@@@@@@@@@@@@@@@@
Thanks for writing.
Assuming that "between 0 and 1" means "strictly between" (which is the clear intent), then I agree that prefixing a digit 5 is solving a non-existent problem. Since the decimal 0.000... is not part of the list, you are correct that the construction cannot possibly produce a decimal ending in all zeroes.
@@@@@@@@@@@@@@@@@@@@@@@@@@@
So go buy his excellent book, one of the few real analysis texts which give full, well written solutions to every problem.  And use it in good health.
Best - Jonathan
