
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.