Docsity

Math Problem Set Solutions: Properties of Integers and Sequences - Prof. Karl Rubin, Assignments of Mathematics

Toggle sidebar
bg1
Math 194, problem set #1
For discussion Tuesday October 9
1. Show that some multiple of 1232123432123454321 contains all 10 digits (at least once)
when written in base 10.
Solution 1: Let n= 1232123432123454321. Consider the nconsecutive integers
1234567890 ×1020,1234567890 ×1020 + 1, . . . , 1234567890 ×1020 +n−1. Each of
these integers contains all 10 digits, and since there are nconsecutive integers, one of
them must be a multiple of n.
Solution 2: Let n= 1232123432123454321. Notice that for any integer 0 ≤j≤9,
jn has last digit j. Thus, starting with the last digit and counting to the left, taking
every 100th digit of
9n×10900 + 8n×10800 +· ·· + 1n×10100 + 0n×100,
we get all 10 digits.
2. For each integer n≥0, let S(n) = n−m2, where mis the greatest integer with
m2≤n. Define a sequence (ak)∞
k=0 by a0=Aand ak+1 =ak+S(ak) for k≥0. For
what positive integers Ais this sequence eventually constant? (Putnam, 1991)
Solution: This sequence is eventually constant if and only if Ais a square. If some akis
a square, then S(ak) = 0, so that ak+1 =ak+S(ak) = ak, and the sequence is constant
from that point on. In particular, if a0=Ais a square, then the sequence is constant.
If akis not a square, then ak+1 =ak+S(ak)> ak, so the sequence is not constant from
that point on. Moreover ak+1 =ak+S(ak) = S(ak)+m2+S(ak) = m2+2S(ak), where m
is the greatest integer with m2≤ak. Now notice that ak+1 > m2, and ak+1 6= (m+ 1)2
because ak+1 has the same parity as m2. Also, since S(ak)<(m+ 1)2−m2<
(m+ 2)2−(m+ 1)2,ak+1 < m2+ [(m+ 1)2−m2] + [(m+ 2)2−(m+ 1)2] = (m+ 2)2.
Since m2< ak+1 <(m+2)2, and ak+1 6= (m+1)2,ak+1 is not a square. Thus, if a0=A
is not a square, no akis a square, and so the sequence is not constant from any point
on.
3. Determine F(x) if, for all real xand y,F(x)F(y)−F(xy) = x+y.
Solution: Notice that F(0)F(0)−F(0 ·0) = 0, so that F(0)[F(0)−1] = 0, which implies
that F(0) = 0 or 1. Also notice that F(x)F(0) −F(x·0) = [F(x)−1]F(0) = x, so that
F(0) 6= 0. Thus [F(x)−1] ·1 = x, and we have that F(x) = x+ 1 for all x. Finally,
observe that F(x)F(y)−F(xy) = (x+1)(y+1)−(xy+1) = xy +x+y+1−xy−1 = x+y
does hold for all real xand y.
pf3

Partial preview of the text

Download Math Problem Set Solutions: Properties of Integers and Sequences - Prof. Karl Rubin and more Assignments Mathematics in PDF only on Docsity!

Math 194, problem set

For discussion Tuesday October 9

  1. Show that some multiple of 1232123432123454321 contains all 10 digits (at least once) when written in base 10. Solution 1: Let n = 1232123432123454321. Consider the n consecutive integers 1234567890 × 1020 , 1234567890 × 1020 + 1,... , 1234567890 × 1020 + n − 1. Each of these integers contains all 10 digits, and since there are n consecutive integers, one of them must be a multiple of n. Solution 2: Let n = 1232123432123454321. Notice that for any integer 0 ≤ j ≤ 9, jn has last digit j. Thus, starting with the last digit and counting to the left, taking every 100th digit of

9 n × 10900 + 8n × 10800 + · · · + 1n × 10100 + 0n × 100 ,

we get all 10 digits.

  1. For each integer n ≥ 0, let S(n) = n − m^2 , where m is the greatest integer with m^2 ≤ n. Define a sequence (ak)∞ k=0 by a 0 = A and ak+1 = ak + S(ak) for k ≥ 0. For what positive integers A is this sequence eventually constant? (Putnam, 1991) Solution: This sequence is eventually constant if and only if A is a square. If some ak is a square, then S(ak) = 0, so that ak+1 = ak + S(ak) = ak, and the sequence is constant from that point on. In particular, if a 0 = A is a square, then the sequence is constant. If ak is not a square, then ak+1 = ak + S(ak) > ak, so the sequence is not constant from that point on. Moreover ak+1 = ak+S(ak) = S(ak)+m^2 +S(ak) = m^2 +2S(ak), where m is the greatest integer with m^2 ≤ ak. Now notice that ak+1 > m^2 , and ak+1 6 = (m + 1)^2 because ak+1 has the same parity as m^2. Also, since S(ak) < (m + 1)^2 − m^2 < (m + 2)^2 − (m + 1)^2 , ak+1 < m^2 + [(m + 1)^2 − m^2 ] + [(m + 2)^2 − (m + 1)^2 ] = (m + 2)^2. Since m^2 < ak+1 < (m+2)^2 , and ak+1 6 = (m+1)^2 , ak+1 is not a square. Thus, if a 0 = A is not a square, no ak is a square, and so the sequence is not constant from any point on.
  2. Determine F (x) if, for all real x and y, F (x)F (y) − F (xy) = x + y.

Solution: Notice that F (0)F (0)−F (0·0) = 0, so that F (0)[F (0)−1] = 0, which implies that F (0) = 0 or 1. Also notice that F (x)F (0) − F (x · 0) = [F (x) − 1]F (0) = x, so that F (0) 6 = 0. Thus [F (x) − 1] · 1 = x, and we have that F (x) = x + 1 for all x. Finally, observe that F (x)F (y)−F (xy) = (x+1)(y+1)−(xy+1) = xy+x+y+1−xy−1 = x+y does hold for all real x and y.

  1. A two-person game is played as follows. The players alternate placing a penny on a circular table. Each penny must lie completely on the table, and not overlap any previously-placed pennies. The first player unable to fit a penny on the table loses. (You can assume they have all the pennies they need.) Is it better to go first or second? Is there a winning strategy? Is the answer any different if the table is square? triangular? Solution: If a circular or square table fits at least one penny, it is better to go first. The player who plays first can force a win by placing the first penny in the exact center of the table. After each subsequent move by the second player, the first player can respond by playing in the spot that is the same distance from the center of the table, but rotated 180◦. By the rotational symmetry of the table, the first player will always be able respond to any move by the second player, and therefore the first player will win.
  2. Compute the determinant of the n × n matrix all of whose diagonal entries are 0, and all of whose off-diagonal entries are 1. Solution: Let A be the matrix described above. Since determinants are invariant under the row operation of adding one row to another, det A = det B, where B is the matrix we get by replacing the bottom row of A by the sum of all the rows of A. Also det B = (n − 1) det C, where C is the matrix we get by dividing all of the entries in the bottom row of B by n − 1. Further, det C = det D, where D is the matrix we get by adding the bottom row of C to each of its other rows, and then replacing the bottom row of that matrix by the sum of all its rows. The matrix D will then be the identity matrix with all but the last of its 1s replaced by −1s, and so det A = (n − 1) det D = (n − 1)(−1)n−^1.
  3. Show that every infinite sequence of distinct real numbers contains either a strictly increasing subsequence or a strictly decreasing subsequence. Solution: Assume that a sequence (xn)∞ n=1 does not have a strictly increasing subse- quence. Then for each N , the maximum of {xn : n > N } must exist. For each N , let m(N ) be that maximum, and let kN be such that xkN = m(N ). Let y 1 = m(1), and for i ≥ 1, let yi+1 = m(kki ). Since m(N ) is a weakly decreasing function and the xn are distinct, we have yi+1 < yi for all i ≥ 1, and so (yi)∞ i=1 is a strictly decreasing subsequence of (xn)∞ n=1.