Crux v5n07 Aug
Crux v5n07 Aug
Mathematicorum
Published by the Canadian Mathematical Society.
http://crux.math.ca/
ISSN 0705-0348
CRUX MATHEMATICORU^
Vol. 5, No. 7
August - September 1979
Sponsored by
Carleton-Ottawa Mathematics Association Mathematique d'Ottawa-Carleton
Publie par le College Algonquin
The assistance of the publisher and the support of the Samuel Beatty Fund, the
Canadian Mathematical Olympiad Committee, the Carleton University Mathematics Depart-
ment, and the Ottawa Valley Education Liaison Council are gratefully acknowledged.
ftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftftfti t ft ft i tftftftftftftft
ftftftftftftftftftftftftftftftftftftftftftftftftftftftftfti t i t i t i t i t ft i tftftftftftft
CRUX MATHEMATICORUM is published monthly (except July and August). The yearly
subscription rate for ten issues is $10.00. Back issues: $1.00 each. Bound volumes
with index: Vol. 1-2 (combined), $10.00; Vol. 3-4, $10.00 each. Cheques or money
orders, payable in Canadian or U.S. funds to CRUX MATHEMATICORUM, should be sent to
the managing editor.
All communications about the content of the magazine (articles, problems,
solutions, etc.) should be sent to the editor. All changes of address and inquiries
about subscriptions and back issues should be sent to the managing editor.
Editor: Leo Sauve, Architecture Department, Algonquin College, 281 Echo Drive,
Ottawa, Ontario, K1S 1N3.
Managing Editor: F.G.B. Maskell, Mathematics Department, Algonquin College,
200 Lees Ave., Ottawa, Ontario, K1S 0C5.
Typist-compositor: Nancy A. Makila.
it it *
CONTENTS
Function Pathology Michael W. Ecker 182
Algorithms and Pocket Calculators: The Gamma Function . . . . Clayton W. Dodge 188
Addendum to Function Pathology Michael W, Ecker 190
Areas of Triangles Inscribed in a Given Triangle Dan Pedoe 191
Mama-thematics Charles W. Trigg 192
The Olympiad Corner: 7 Murray S. Klamkin 193
Problems -Probl&mes 199
Solutions 201
Some DON'T'S and DO'S: A Programmer's Blues Mans Havermann 212
- 181 -
- 182 -
FUNCTION PATHOLOGY
MICHAEL W. ECKER
circular functions, exponential and logarithmic functions, etc. From these, despite
our warnings to the contrary, students tend to expect a fair degree of "smoothness"
in all the functions they encounter.
The first kink introduced is usually the relatively innocuous absolute value
function, defined by y - \x\ , whose V-shaped graph makes manifest the possibility of
the combination of continuity and nondifferentiability at a point (here at a? = o).
When calculus students are taught the familiar theorem on differentiability implying
continuity, this is frequently the prime counterexample to the proposed converse
question.
Taking a quantum jump, we ask whether a function can be everywhere discontinuous.
An affirmative answer follows from the fact that the set of rationals, Q9 is dense
in the set of reals, R. (This simply means that every neighborhood of every xeR
contains infinitely many rationals.) The characteristic function of Q, Xn:R~*R>
H
defined by xn{x) = l or o according as x is rational or not, has the desired property.
A further quantum jump brings us to the question mentioned earlier, about con-
tinuous functions that are nowhere differentiate. But first let us back up a bit.
Can we, say, have a function which is differentiate (hence continous), but whose
derivative somewhere fails to be continuous? The function f : R+R defined by fix)
= x2 sin (l/x) if x*o and f(o) = o has this property, since Mmf'ix) does not exist
as x + o whereas continuity of /' at x = o requires this limit to exist. (Interestingly
enough, /'(o) exists and is o, but that's beside the point.) So continuous functions
that are differentiate need not have their derivatives continuous. In the light of
this somewhat surprising possibility, it is interesting to note that, by a theorem
of Darboux, while derivatives need not be continuous, they must satisfy the inter-
mediate value property (IVP). This, in fact, is a frequent starting point in trying
to characterize functions that are derivatives, as in [21. More generally, it is
true that a function which is continuous must satisfy IVP, while the converse fails.
It usually comes as a surprise that this is so, but experimentation soon leads one
to a function that does a lot of "wiggling", and one then comes up with something
like the function defined by g(x) = sin (l/x) if x*o and g(o)~c (arbitrary), for
which "Wmg(x) does not exist as x-+o9 so that g is not continuous at x = 0. However,
the function takes on all values in the closed interval [-1,1] infinitely often in
every neighborhood of o. It is frequently used in constructing counterexamples.
Of the two problems which follow, the first was suggested by [3] and [5], and
the second is a variation on the same theme. In both problems, we consider only real
numbers x in the interval (0,1) and write x = l(a /10 77 ), using the terminating
- 184 -
expansion (i.e. with zeros) where such choice exists. This convention ensures that
the functions are well-defined. All sums are for n = 1,2,3
PROBLEM 1. Let p be a permutation of the digits 0 through 9. This induces, in
a natural way, a function p* defined by
, io n / io n
Discuss fully the continuity and differentiability properties of functions of this
type, the family of which we will designate Gx.
PROBLEM 2. Let i\ be a permutation of the natural numbers 1, 2, 3, ... . This
induces, in a natural way, a function TT* defined by
a , v
4%)
Discuss fully the continuity and differentiability
ion
properties of functions of this
type, the family of which we will denote Gz.
To illustrate, consider x = .12349 = .123490, where the 6 is added to emphasize
the necessity of treating all decimals as infinite series. Let p be defined by
p(7<) = k + 1 (mod lo), so that p(o) = 1, p(l) = 2,..., and p(9) = o. Then
p * ( x ) = p*(.123490) = .234501.
Note the infinite tail of ones. If ir is defined, say, by the rule "interchange each
pair of adjacent digits", that is, -n(k) = k-1 if k is even and ir(fe) =fc+ l if k is
odd, then
7T*(x) = TT*(. 123490) = .2143090.
Some preliminary observations.
(a) Functions in G1 change decimals by changing the digits into other prescribed
digits, while those in G2 permute the digits of the decimal in a prescribed way.
(b) Gx has 10! functions, while G2 is infinite.
(c) In each family, the appropriate identity permutation induces the identity
function on (o,l).
(d) The functions in both families are, or come tantalizingly close to being,
bijective. (To test yourself, find out which functions, other than the identity,
are bijective and why the others fail to be injective and/or surjective.)
(e) Recalling that a real number is rational if and only if its decimal
- 185 -
the other decimal less than the terminating one. Further experimentation leads
one to investigate the implications of continuity from below for finite decimals,
and one is eventually forced to conclude that the original permutation p must map
adjacent integers to adjacent integers, yielding either p(k)=k or p(k) = 9-fc,
inducing p*(x) = x or p*(x) - l -x, respectively.
The continuity of functions in G2 can be investigated in a similar manner. To
discover their differentiability properties, we set h=-lo~n where n = 1,2,3,...
and use the difference quotient
-1
i\*(x + h) - i\*(x) H^-W (n)
= 10
~h
For TT* to be different!*able at a given x, this quotient must approach either o or a
nonzero constant as n+°°, that is, n-is (n) must approach -°° or a constant o. The
-1
fact that TT is bijective rules out the first possibility altogether and, since n-ir (n)
_-i
is always an integer, the second leads to TT (n) = n-c for all sufficiently large
rc, or TT(n) = n + c. Considering the first M values of n which do not satisfy these
relationships, we conclude from the bijectivity of TT that t? = o. It can now be
verified that the functions TT* such that Tr(n)=n for n>M are indeed differentiate,
except at the finite decimals of M or fewer digits after the decimal point. Note
that TT* is differentiate at the other terminating decimals. While the above der-
ivation essentially (and tacitly) assumed that x was not a terminating decimal, no
generality is lost. We will leave it to the reader to verify that C?TT*(X)/dx = 1
subject to the stated limitations on TT and x.
Other "pathological" functions with similar continuity and differentiability
properties can be constructed. For example the author, in trying to find a function
/ that is discontinuous on a dense subset of its domain and differentiate on another
dense subset, only succeeded in producing an example of the earlier type (continuous
on a dense set, discontinuous on another dense set, differentiate nowhere). The
very method of construction is similar in appearance:
Define /: (o,l) -»• (0,1), with the same convention as before, by
fe)
1
n*
10
There are many functions for which accurate polynomial approximations are handy
to have. For any function defined on any given finite set of points, it is possible,
for any given maximum error e, relative or absolute, to find a polynomial approximation
with error less than e. Generally, the smaller e > o is, the larger is the degree of
the polynomial.
Since we are looking for approximating polynomials of relatively low degree, we
may have to sacrifice some accuracy. There is nothing magical about polynomials,
however, and the minimax method1 can be applied to rational functions as well. In
fact, some shrewd guessing with rational, algebraic and transcendental functions may
at times be appropriate.
Here we shall examine several approximations to the gamma function, defined by
•oo
/ 0
For the minimax method, see an earlier article in this series [1978: 217].
(Editor)
- 189 -
with absolute error on the interval Co,i] less than 1.49xio""8. We say this
approximation has deqree 7, the sum of the numerator and denominator polynomial
degrees. Since one can now calculate T(x) to seven-place accuracy for l<a?<2,
one can evaluate the gamma function to seven significant digits for any real a? for
which it is defined by using the reduction formula (1). Indeed, formula (2) was
the standard by which the author measured all other approximations. If you have
need to calculate Y(x) from time to time and if you have available a programmable
calculator with a card reader, you may wish to record equation (2) on a card for
your use.
Since equation (2) is rather cumbersome to use by hand, let us consider several
other minimax formulas for the gamma function. The formula
r(
* ) = r ^ H k ' 1-9507***3 (3)
is given by Tike [1, p. 1791 as having two-place accuracy (to the nearest .01).
Certainly it is easy to use with a hand calculator.
A search for greater accuracy produced
for large a?, the author calculated values of T(x) • {e/x)x and applied the minimax
method to find
„, N 2.08635+ 1.09061a? - .078735a: 2 fxY , _,
(5)
r (a .) = A^T~X \7) '
which has maximum error .00004, hence four-place accuracy, for 1 < # < 2 .
One further refinement produced a slightly better degree 3 approximation. For
1 <x< 2, we have
r, , 2.56222 - .02783a? + ,00498a?2 fxY r (c.
T(X) = (6)
-.06582 fa? \e) ^
giving accuracies of from two to seven places, so the choice of formula utilized
depends upon the accuracy desired and the degree of complexity one will accept.
These formulas are best, of course, for small x , becoming increasingly time-
consuming as x increases. Using the reduction formula (1) along with one of the
approximations in equations (2) to (6) grows less practical as x becomes large,
even with a programmable calculator. So we seek a formula to evaluate the gamma
function for large x .
The Stirling approximation, listed between equations (H) and (5), is not very
good, giving only two-place accuracy for 8 < # < 7 0 , the maximum rvalue usable with
a pocket calculator since r(7i) > lo 1 0 0 . The HP-35 Math Pac [2] lists
fx\X I 1 1 139 571 \
r(* + l) = / 2 ^ ^-J (1 + m < 2 8 8 ^ " 51840P" " 2488320*"j
as an approximation valid for large x . It gives seven-place accuracy for x > 13 and
five-place accuracy for x>2.l. The last term in the parentheses can be neglected
for #>14.7 or x>^.7, respectively. For five-place accuracy, the last two terms
can be omitted when X > 1 7 . 6 .
Perhaps the easiest way of all to calculate values of the gamma function is to
use the Commodore M55 Mathematician calculator which, according to John Free r3l,
has built-in programs for many functions of interest to statisticians and applied
mathematicians, including the gamma function.
REFERENCES
1. C.T. Fike, Computer Evaluation of Mathematical Functions, Prentice-Hall,
1968, pp. 75-76, 92, 111-112, 157, 169, 178, 207.
2. HP-35 Math Pac, Hewlett-Packard, 1974, p. 75.
3. J. Free, "Specialized Calculators Shortcut Tough Problems", Popular Science,
210 (June 1977) 171.
In a comment following the solution of Crux 320 [1978: 2*+o], the editor of this
journal refers to a problem proposed 1n 1977 M , which reads:
Let RST be a triangle such that M, N, and
L are the midpoints of its sides, (See figure.
It need not be the case that MF3 NB^ and LE
have the same length*) If triangles ABC and
DEF have vertices which lie on the sides of
triangle RST at equal distances from M, N, " D N B
and Lj prove that these triangles have the same area.
This is quite an old problem. It appears (with proof) as a Theorem in Johnson
[3]; it can be derived from Exercise 39 in Forder [23; and it is Exercise 11.7 in
my book [5, p. 55], where it is easily deduced from the preceding Exercise 11.6.
Forder uses the method of Grassmann, which in this case is nothing but a shorthand
for the determinantal expression for the area of a triangle, and in my book I explain
this method and give applications. All I wish to demonstrate in this note is the
ease of calculation which the method affords, compared with, say, the published
solution [1],
Exercise 11.6 in my book reads:
Let ABC be a given triangle, and let d3 E, F be points on BC3 CA,, and AB
respectively dividing the segments BC3 CA^ and AB in the ratio k1:li k2\ls and
k3:± respectively1. Show that
area of A DEF : area of A ABC = (1 + kxk2k3) : (1 H - S ^ K I +fc2)(l +k3).
If a, t9 and c are vectors from some origin to the vertices of triangle ABC,
the vectors to D, E, and F are given by the equations
0 1 k1
K o ± (a A ib A<?)
l k3 o
= (1 +klkzk3)(a*b Ac?);
and since
d *t *f :a Ab A~C = area of A DEF : area of A ABC,
the required result follows.
To obtain the result we are discussing, we merely observe that the given ratio
is unchanged if we replace kx, k2, and k% by their respective reciprocals.
Similar methods produce a short proof of Routh's Theorem, which is given as
Exercise 11.8 on the same page in my book. With similar notation this reads, in
brief:
D., Ej and F are points on the sides BC3 CA., and AB of a triangle ABC such that
where p1+q1 - p2 + q2 - p3 +q3 = 1 (so that BD : DC = pY : qx, etc). The lines AD.,
BEj and CF form a triangle PQR. Prove that the ratio of the areas of triangles PQR
and ABC is
Again, once the points P, Q, and R are found, the working is immediate.
REFERENCES
1. Mangho Ahuja, Solution to Problem 3707, School Science and Mathematics, 78
(December 1978) 715-716.
2. H.G. Forder, The Calculus of Extension, Chelsea, 1960, p. 21.
3. Roger A. Johnson, Modern Geometry, Houghton Mifflin Co., 1929 (reissued as
Advanced Euclidean Geometry, Dover, I960), p. 80.
4. Fred A. Miller, Problem 3707, School Science and Mathematics, 11 (December
1977) 714.
5. D. Pedoe, A Course of Geometry for College and Universities, Cambridge
University Press, 1970.
School of Mathematics, University of Minnesota, Minneapolis, Minnesota 55455.
ft * ft
MAMA-THEMATICS
Mrs. Dedekind to son Richard: "And I thought you wanted that knife to whittle with."
CHARLES W. TRIGG
- 195 -
P . i i i J
<7 2 3 4 '•" 1318 1319 *
Prove that p is divisible by 1979.
2, A prism with pentagons A 1 A 2 A 3 A 1+ A 5 and BjBjBgB^Bg as top and bottom faces
is given. Each side of the two pentagons and each of the line-segments A.B.,
for all i9j = l,..,, 5, is coloured either red or green. Every triangle whose
vertices are vertices of the prism and whose sides have all been coloured has two
sides of a different colour. Show that all 10 sides of the top and bottom faces are
the same colour.
3, Two circles in a plane intersect. Let A be one of the points of intersection.
Starting simultaneously from A two points move with constant speeds, each
point travelling along its own circle in the same sense. The two points return to
A simultaneously after one revolution. Prove that there is a fixed point P in the
plane such that, at any time, the distances from P to the moving points are equal.
TUESDAY JULY 3rd 1979
Time: M- hours
t\t Given a plane IT, a point P in this plane and a point Q not in TT, find all
points R in IT such that the ratio (QP + PR)/QR is a maximum.
5, Find all real numbers a for which there exist nonnegative real numbers
xl% x2, x3, x^, x5 satisfying the relations
5 5 5
I kxv - a, I k*xv - a2 , J fc5^, = a 3 .
K K K
fc=l fc=i fc=l
6, Let A and E be opposite vertices of a regular octagon. A frog starts
jumping at vertex A. From any vertex of the octagon except E, it may
jump to either of the two adjacent vertices. When it reaches vertex E, the frog
stops and stays there. Let a be the number of distinct paths of exactly n jumps
ending at E. Prove that
a a =
1(X , n-1 V n - L „n „
h
2n-l = °- 2n f! ~ " = 1-2'3'---'
where x - 2 + /2 and y - 2 - / 2 .
Note. A path of n jumps is a sequence of vertices (P0,..., P ) such that
(i) P 0 = A, P n = E;
(ii) for every t9 o < i ^ n - l , P. is distinct from E;
- 195 -
As promised last month, I now give solutions to the problems posed at the Eleventh
Canadian Mathematics Olympiad. The problems and solutions were prepared by the
Canadian Mathematics Olympiad Committee, whose membership was listed in last month's
column.
ELEVENTH CANADIAN MATHEMATICS OLYMPIAD (1979)
Solution.
Let S denote the sum on the l e f t of the proposed i n e q u a l i t y . Since l<a< ... <e,
we have
Xa,bl > 2a, Xb,cl > 2b, Xo M ;> 2a9 Xd,el > 2d,
e l l l l 14 15
S + + + =
* 2 6 6 10 15 < 1 6 '
Case 2. <?>4. I f 5 < < f < 7 , then Xa,dl = 20, 28, 30, 35, or 42, except when
e = 4 and d-6. In the exceptional case, we have
+ +
2 4 12 12 " 12 16 '
and otherwise
2 4 20 10 10 16
F i n a l l y , i f d>89 we have
5
„ ^ 1 + 1+ 1+ 1= 15
^ 2 4 8 16 16
Note. This is a special case of the following theorem originally conjectured
by P. Erdb's and proved by D. Borwein {Canadian Mathematical Bulletin, 21 (March 1978)
117-118):
Show that if 1< a0 <ax < ... < a,s then
1 1 1 < _ _1_
[<3A , a ] Ta .ao1 *" Xa. A, a. 1 0& '
L\, A dog standing at the centre of a circular arena sees a rabbit at the wall.
The rabbit runs around the wall and the dog pursues it along a unique path
which is determined by running at the same speed and staying on the radial line
joining the centre of the arena to the rabbit. Show that the dog overtakes the
rabbit just as it reaches a point one-quarter of the way around the arena.
Solution.
- 197 -
It is sufficient to show that the arcs
RR* and DD* are equal in length (see figure).
If the arena has radius r, then arc RR' =r6.
Also, /D'QD = /R'DR = e (corresponding sides
perpendicular), so arc DD' subtends an angle
of 26 at the centre of its circle (of radius
r/2). Thus arc DD' = (r/2)(20) = r6, as
required,
Solution.
Since a one-step walk can be taken in any of the four directions, /(1) = 4. Two-
and three-step walks are self-avoiding provided they don't backtrack; therefore
/'(2) = 4 • 3 = 12 and f(3) = 4 • 3 • 3 = 36, To continue a three-step walk to a four-
step one,, we must avoid backtrackinn and closing a loop. The 8 walks of the form
*"9 | can only be continued in two ways, and the remaining 36 - 8 = 28 can be continued
in three ways. This shows that f{*\) = 8 • 2 + 28 • 3 = loo.
If v/e take n steps only to the north or west, we get 2n walks which must be
self-avoiding, so 2n < fin). If we only guard against backtracking, we get 4 . sn~
walks which may not be all self-avoiding but certainly include the self-avoiding ones,
SO fin) < M- • 371"1.
Solution.
Expanding the right side, simplifying, and factoring, we get the equivalent
- 198 -
equation
(y + z){z +x)(x+y) = 0.
Thus the solutions consist of all the triples
(x9y9z) = (a9b,-b)9 {b9a9-b)9 or (b9-b9a)9
where a and b are arbitrary integers.
6-21 Given are two points, one on each of two given skew lines (lines not
lying in a common plane). Prove that there exists a unique sphere
tangent to each of the given lines at each of the two given points.
Solution.
The center of the desired sphere must lie in the two planes TT I5 TT2, each passing
through one of the two given points Pl9 P 2 and perpendicular to the given line con-
taining the point. Since the two given lines are skew, the planes TT IS TT2 must
intersect in a line L which contains the center of the sphere. Since the center of
the sphere must be equidistant from Px , P 2 , it also lies on the perpendicular bi-
secting plane TT of the segment P ^ . Finally, -rr must intersect line L in the unique
center.
If
6-3• %>y>z * o, prove that
x3+y3+z3 £ y2z + z2x + x2y
and determine when there is equality.
Solution.
Without loss o f g e n e r a l i t y , we need only consider two cases: (1) x^yzz and
(2) x>z >y.
Case 1 . The desired i n e q u a l i t y follows from
2
x (x -y) + y2(y - z) > y2(x -y) +y2(y - z) = y 2 (x - z) ^ z2(x - z).
Case 2. Here i t follows from
2
y (z -y) +z2(x -z) < z2{z ~y) + z2(x - z) = z2 (x -y) < x2{x -y).
Alternatively, by Holder's inequality,
PROBLEMS--PROBLEMES
Problem proposals and solutions should be sent to the editor, whose address
appears on the front page of this issue. Proposals should, whenever possible, be
accompanied by a solution, references, and other insights which are likely to be of
help to the editor. An asterisk (it) after a number indicates a problem submitted
without a solution.
Original problems are particularly sought. But other interesting problems may
also be acceptable provided they are not too well known and references are given as
to their provenance. Ordinarily, if the originator of a problem can be located, it
should not be submitted by somebody else without his permission.
To facilitate their consideration, your solutions, typewritten or neatly
handwritten on signed, separate sheets, should preferably be mailed to the editor
before December 1, 1979, although solutions received after that date will also be
considered until the time when a solution is published.
461 f Proposed by the late R. Robinson Rowe3 Rowe Manses Nauhinway* Michigan.
Restore the digits in the decimal addition
C
DODGE
MAINE ,
0R0N0
I A I
tan j cos A l
I p J
tan — cos B l = o.
C
tan — cos C 1
ax (x + 1 r + bx (x + 1 y + ex (x + 1) -1 = 0,
SOLUTIONS
No problem is ever permanently closed. The editor will always be pleased to
consider for publication new solutions or new insights on past problems.
387\ C1978: 2513 Proposed Harry D. Ruderman, Hunter College Campus School,
New York,
N persons lock arms to dance in a circle the traditional Israeli Hora. After
a break they lock arms to dance a second round. Let P(N) be the probability that
for the second round no dancer locks arms with a dancer previously locked to in the
first round. Find lim P(N).
N-*°°
Editor's comment.
Not one solution or comment was received for this problem, which therefore
remains wide open.
ft ft ft
The desired relation now follows upon substituting the well-known relations (see
- 202 -
[1978: 591)
R +r
2: cos A =
R *
s2 -W2 tr2
£ cos B cos C
. (ion-i)(io4%io3%io2n + io%i)^
(l)
io5-i
For n > 5 , each factor in the numerator of (l) is greater than the denominator,
so no amount of cancellation (to get rid of the denominator) will make (l) collapse
into a single prime. Thus S is composite for n > 5 , and hence for all rc>2.
II. Solution by Hayo Ahlburg* Benidorms Spain,
Let S be defined [as in solution I]. S _ is composite for n = 2, 3, 4, 5;
n, D n,5
in fact
Sn2,5c = 11 • 9091,
S 0 _ = 3 • 31 • 37 • 2906161,
We now assume n > 5 . If i? is the repunit with m ones (e.g. i?5 = m i l = Hi • 27l),
then we have R5c • sn, 5r = RSn
r . Since R \Rr and R contains at least one prime factor
n' 5rc n
p not occurring in any R <R , this factor p must divide S _ since it is not a
c
m n n,o
factor of R . So £ must be composite, unless p = 5 , But i? has only n digits,
0 ft y O rl> $ \J Tu
fewer than S r which has 5n - 4 digits; hence p < /? < S _ and so 5 _ is composite
r
w,5 * n n,5 n,5
also for all n > 5.
The factorization of sn c is not required here; but since I have it available,
b ,o
it may as well be recorded here:
S 6,5c = 3 • 7 • 11 • 13 • 31 • 37 • 211 • 241 • 2161 • 9091 • 2906161.
More information about repunits and their divisors can be found in Yates [13.
Also solved by ALLAN Wm. JOHNSON Jr., Washington, D.C.; MURRAY S. KLAMKIN,
Universiby of Alberta; LEROY F. MEYERS, The Ohio State University; and the proposer.
Partial solutions were received from HERMAN NYON, Paramaribo, Surinam; and KESIRAJU
SATYANARkYANA, Gagan Mahal Colony, Hyderabad, India.
Editor's comment.
Klamkin and the proposer located this problem in Gnedenko [2], where it is
stated that it was one of the problems presented in preparation for the eleventh
Moscow Olympiad. Klamkin also mentioned that the related problem, to prove that
S is composite for all rc£2, where
n
S = -io^
i i - — 1£ = loooioooi...oool (ft ones),
nA
io*-i
- 2CW -
appeared in a 1975 Federal Republic of Germany Olympiad, This led him to a$(c for
which positive Integers r ts 1t true that $ is composite for all n*29 where
8n - ^ ^
>r iop-i
His question was parttally answered by Meyers, who proved the following:
If o>7) n^23 and r are positive integers, then
m _i
S
n,r - V f <3>
a -1
is composite except possibly when n is prime and r is a nonnegative integral power
of n (when a separate verification must be made). Furthermore, when n is composite,
say n - uv with u > 1 and v > 1, then
S =S •S (4)
n,r u9r v ,ur
and neither factor is 1.
Johnson, in fact, verified that this theorem is true when c-2 and r = 5 in
(3), that is, when the numbers in our proposal are interpreted as binary numbers.
Here again s is composite for all n>.2 and the special verification required
for sr r gives, in decimal notation,
5,5
S - 1082401 = 601 • 1801.
In our problem, <? = io, r = 5, and separate verification had to be made for rc=5,
yielding (2). When n - 6 and u = 2, v = 39 we get from (4)
5
6,5 = *3,5 * S 2 ( 1 5 = 5
3,5 ' i S f l = ^3,5 ' < " , S +*>.
whence
10 1 5 + 1 = 1000000000000001
= 7 • 11 • 33 • 211 • 241 • 2161 • 9091.
- 205 -
A final remark. Several solvers gave the factorization (2), but only Klamkin
and Meyers seemed fully aware that the last factor there is a prime. Meyers
verified this fact himself, while Klamkin got the information from J. Brill hart
(University of Arizona) via M.V. Subbarao (University of Alberta).
REFERENCES
1, Samuel Yates, "Prime Divisors of Repunits", Journal of Recreational
Mathematics, 8 (1975) 33-38.
2. B.V. Gnedenko, "Mathematical Education in the U.S.S.R.", American
Mathematical Monthly„ 64 (July 1957) 389-408, esp. p. 397,
ft ft ft
2 3 8 + 1 = 4a* + 1
= (2x2 - 2# + l)(2tf2 + 2a?+ 1)
= (2 1 9 - 2 1 0 + 1 ) ( 2 1 9 + 2 1 0 + 1)
= 523265 • 525313
= 5 • 104653 • 525313
= 5 • 229 • 457 • 525313.
must be of the form 76& + 1. With or without a small table of primes (that's
allowable paper, in any case), it is easily determined that the only primes of the
form 76fc+1 that are less than /525313 « 725 are 229 and 457, and these are not
divisors of 525313. Thus 525313 is a prime and, since 229-457 = 104653, the
complete factorization is
Editor's comment.
Several solvers used the identity
which Dickson Cl, p. 383] credits to H. LeLasseur and A. Aurifeuille, and earlier
!~1, p. 3821 to Sophie Germain (who, Ah!burg assures us, was born l April 1776 in
Paris and died 17 June 1831 in Paris). This is nothing but a straightforward
application of the identity
2 5 8 + 1 = 5 • 107367629 • 536903681.
The last two factors are primes. This can be quickly verified with a table of
primes by the method of our solution II (there are only 52 primes of the form
116?: +1 that are less than /536903681, and none of them is a divisor of either
number).
Words worth uttering now: Landry! thou shouldst be living at this hour... .
- 207 -
REFERENCES
1. Leonard Eugene Dickson, History of the Theory of Numbers, Vol. 1, Chelsea,
New York, 1952.
2. David M. Burton, Elementary Number Theory, Allyn and Bacon, Boston, 1976,
p. 238.
* * s%
3911 C1978: 2823 Proposed by Allan Wm. Johnson Jr., Washington, D.C.
Here is a word definition that is also an alphametic:
A
SUN
DRIED
GRAPE
RAISIN
Solve this decimal addition, bearing in mind that of course the digits of UP go that
way.
I. Solution by Charles W. Trigg, San Diego, California.
Immediately R = l, so 1 = 3 or 4 and
D + G = A + lo. W
Now from the columns, proceeding from the right,
A + D + E = lofc, (1)
U + E + P + f c = I +10m, (2)
I +A+w = ion. (3)
80538 80738
9721 and 9521 .
90263 90263
so t h a t , f o r a l l n ,
n2{nq"1 - l ) = o (mod p 2 ) . (3)
except possibly when n = 2 (mod 4 ) . But in this last case, n*7 -1 is odd and
n = 4 (mod 8 ) , so that
n* + 1 ~ n 2 2 0 (mod 8p2<?).
This completes the proof of (l).
Also solved by HAYO AHLBURG, Benidorm, Spain; W.J. BLUNDON, Memorial University
of Newfoundland; CLAYTON W. DODGE, University of Maine at Orono; ALLEN DRUZE, Brooklyn,
New York; MICHAEL W. ECKER, Pennsylvania State University, Worthington Scranton Campus;
HERTA T. FREITAG, Roanoke, Virgina; T.J. GRIFFITHS, A.B. Lucas Secondary School,
London, Ontario; ALLAN Wm. JOHNSON Jr., Washington, D.C.; GILBERT W. KESSLER,^Canarsie
H.S., Brooklyn, New York; FRIEND H. KIERSTEAD Jr., Cuyahoga Falls, Ohio; ANDRE
LADOUCEUR, Ecole secondaire De La Salle, Ottawa; ANDY LIU, University of Alberta;
F.G.B. MASKELL, Algonquin College, Ottawa; L.F. MEYERS, The Ohio State University;
HERMAN NYON, Paramaribo, Surinam; BOB PRIELIPP, The University of Wisconsin-OshJcosh;
JEREMY D. PRIMER, student, Columbia H.S., Maplewood, New Jersey; DAVID STONE, Georgia
Southern College, Statesboro, Georgia; and KENNETH M. WILKE, Topeka, Kansas.
REFERENCE
1. I.A. Barnett, Elements of Number Theory, Prindle, Weber & Schmidt, Boston,
1969, p. 112, Exercise 3.
* * S'J
- 210 -
393 • C1978: 283] Proposed by Sahib Ram Mandarin Indian Institute of
Technology9 Kharagpurj India.
If fn(a.) = (a.-a1)...(a.-a._1)(a.-a.+1)...(ai-an), prove that, for
k = 0, 1,.. ., n - 2,
k
n a.
^=l Jn ^
(This is given without proof in H.F. Baker's An Introduction to Plane Geometry,
Chelsea, Bronx, N.Y., 1971, p, 340.)
so that F'(a.) = / (a.). For any polynomial P of degree at most n - l , the Lagrange
interpolation formula gives the identity
n P(a.)F(x)
P(X) E
;L
t-=l
F'(a.)(x-a.)
^ t-
'
fc _ n a^Fix)
n-1
is then the coefficient of x on either side of (l). Thus we have
from which S(n), £(n + l)... can be obtained in succession. Furthermore, if all the
, that iis, if a * o , then (2) can be used to evaluate S(k) for k = ~1, -2,...
aa.. **o0,
Thus we find
Editor's comment,
Klamkin found that our problem, as proposed, is equivalent to the following
theorem, which Mostowski and Stark CI] attribute to Euler:
If P is a polynomial of degree <> n - 2 and if al3 a2,.., 3 a are distinct
nvmbers and
Fix) = (x -a.)(x
1 2-a 9 )... (x -an ),
then
n P(a.)
VY i
L.
> F«(a.) = °"
No proof is given in Ci], but its truth follows from our own problem.
The relations derived in our featured solution are a fruitful source of algebraic
identities. Consider, for example,
a\ b" + ok + d\ = , .
a u
^ +
TB-a)(b-c)(b-d) (c-a)(c-b)(c-d) +
(d-a)(d-b)(d-c) ' ^ ^^^a
and
5 ^5 5
.^—_^ +_—_^—^ + _ _ — _ = (a+£+<?)3-2(a+2? + <?)(£><? +ca + ab) +abc.
(a-b)(a-c) (b-a)(b^c) {c~a){c-b)
Such identities occurred in profusion in some of the older treatises on algebra,
such as those of Hall and Knight and Chrystal in England, and Aubert et Papelier
in France. They were a frequent source of discouragement for an earlier generation
of students. But we see immediately that the first merely states that S(n) - ot
- 212 -
when n = 4, and the second that 5(5) = a\ -2axa2+o% when n = 3. Any number of such
identities, each more monstrous than the last, can be manufactured at will for the
bafflement of the nonoognoscenti.
REFERENCE
1. A.M. Mostowski and M. Stark, Introduction to Higher Algebra, Polish
Scientific Publishers, Warsaw, 1964, p. 243.
it it it
As first-semesterer in 'Languages',
I've noticed that E-Fortran bandages
My programs with an eye to error:
'T should hardly cause me that much terror.
And yet, each time I run this through,
I get it stuck inside a 'DO'.
I get it stuck inside a 'DO'.
I get it stuck inside a 'DO'.
*** TEMPORARY PROGRAM INTERRUPT:
*** I'D HATE TO BE QUITE SO ABRUPT;
*** BUT REALLY NOW - YOU NINCOMPOOP,
*** YOU'VE STUCK YOURSELF INSIDE A LOOP.
Well, that's not all, let me continue;
Please hear me out if it's within you:
What really raises me to ire
Is merely my intense desire
That any run-amuck diagnostic
Need not be written quite so caustic.
Need not be written quite so caustic.
Need not be written quite so caustic.
*** QUITE SO CAUSTIC? WHAT THE $%$#*
*** THAT'S TWICE YOU'VE MANAGED TO GET STUCK,
*** ONCE MORE AND YOU'LL BE OUT OF LUCK.
Then, finally, I'd like to know
(If you can stand to stoop so low)
Just how you manage to malign
The 'READ' and 'WRITE' of my last line.
So there's the query; now get this:
My final line, and here it is...
My final line, and here it is...
My final line, and here it is...
*** THAT'S THRICE IT IS-YOU CARELESS SLOB,
*** MISSING BRAINS HAS STOPPED THIS JOB,
HANS HAVERMANN,
Weston, Ontario.