Professional Documents
Culture Documents
Number Digits: Problems Problem 1.1
Number Digits: Problems Problem 1.1
Number Digits: Problems Problem 1.1
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Chapter 1
Number Digits
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
Sometimes, the most fun you can have with numbers comes from just
playing around with their digits. There are all kinds of weird and enjoy-
able things that turn up when you start thinking about combinations of
digits that numbers with certain properties can have. This chapter contains
some problems of this type. You may be confronted with numbers whose
digits have interesting sums or products, or whose order might change in
interesting ways under certain circumstances. The most important thing is
to keep an open mind; you’ll be surprised at what you will be able to figure
out. And remember, if you can’t get the solution right away, you can find a
tip to help you on your way at the end of the problem list.
PROBLEMS
Problem 1.1:
How many six-digit positive integers have 2 as the sum of their digits?
(StU-17-A9)
Problem 1.2:
How many four-digit positive integers have 9 as the product of their digits?
(StU-12-A2)
Problem 1.3:
How many positive integers less than 100 have 6 as the sum of their digits?
(O-93-4)
1
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 2
Problem 1.4:
How many positive integers smaller than 1000 have digits that sum to 6?
(O-93-4*)
Problem 1.5:
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
How many three-digit numbers exist, in which the ones-digit is equal to the
sum of the hundreds-digit and the tens-digit?
(StU-99-A6)
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
Problem 1.6:
How many two-digit positive integers are seven times as large as the sum
of their digits?
(StU-09-A9)
Problem 1.7:
(a) Determine the smallest positive integer, the sum of whose digits is equal
to 97.
(b) Determine the smallest positive integer, the product of whose digits is
equal to 29 400.
(StU-97-B7)
Problem 1.8:
Determine a positive integer with the property that the product of its digits
equals 2160. Why can such an integer not have only three digits? What is
the smallest integer with this property?
(StU-03-B2)
Problem 1.9:
What is the largest possible remainder that can remain after dividing a
two-digit number by the sum of its digits?
(O-94-5)
Problem 1.10:
Determine both the largest and smallest possible numbers that can be
attained by adding a two-digit number to the sum of its own digits.
(O-95-4)
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 3
Number Digits 3
Problem 1.11:
Determine all four-digit numbers n with the property that the sum of n and
the sum of the digits of n is equal to 2016.
(StU-16-B1)
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Problem 1.12:
The digits of a three-digit number N are all different. The product of the dig-
its of N is divisible by 27, but not by any prime other than three. Determine
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
Mr. Leadfoot have to drive until his odometer once again reads a number
composed of five consecutive digits?
(O-03-1)
Problem 1.17:
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
(StU-06-A9)
Problem 1.18:
Consider all positive integers divisible by 8 with ascending digits, i.e. num-
bers (like, for instance, 136) with the property that the tens-digit is larger
than the hundreds-digit, and the ones-digit is larger than the tens-digit. What
is the hundreds-digit of the largest of these numbers?
(StU-11-A3)
Problem 1.19:
How many numbers are there from 1 to 1000 that are written without either
the digit 0 or the digit 9?
(StU-92-8)
Problem 1.20:
In the far-off island nation of Trenixa, the people are incredibly afraid of
the number three. When they count, they not only leave out all numbers
divisible by three, but also all numbers that are written with the digit 3
(like 23 or 134, for instance). This year, the Trenixans will be celebrating
the “100”th birthday of their Grand Whoopty, according to their counting
method. How old will the Grand Whoopty really turn this year?
(O-99-2)
Problem 1.21:
A is the biggest four-digit number that has exactly three different digits.
B is the smallest four-digit number that has exactly three different digits.
Determine the number A − B.
(StU-16-A5)
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 5
Number Digits 5
Problem 1.22:
The year 1998 has a number with the property that it is twice a number (999)
that is written by repetition of a single digit. When was this last the case
before 1998? When will it next be the case again after 1998? How many
years will have passed between those two years?
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
(O-98-1)
Problem 1.23:
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
How many three-digit positive integers are there, that are written using
exactly two different digits?
(StU-97-B6)
Problem 1.24:
The product of two two-digit numbers is a number written only using the
digit 8 repeatedly. How many digits can this number have at most and how
many must it have at least? Determine all possible combinations of pairs of
two-digit numbers yielding such a product.
(StU-00-B4)
Problem 1.25:
How many positive integers smaller than 200 are there with a decimal
representation that contains exactly two different digits?
(StU-08-A9)
Problem 1.26:
We consider the numbers a = 999 . . . 9 (composed of 20 times the digits 9)
and b = 999 . . . 9 (composed of 12 times the digit 9). Determine the sum
of the digits of a × b.
(StU-14-B5)
Problem 1.27:
In a seven-digit number N divisible by 6, the first, third, fifth and seventh
digit are equal, and the second, fourth and sixth digit are equal (i.e. the
decimal representation of N is abababa). If you delete the first and the last
digit, you get a five-digit number (with decimal representation babab), that
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 6
is divisible by 9, but not divisible by 18. What is the second digit b of the
given number N ?
(StU-08-A10)
Problem 1.28:
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
Determine the smallest positive integer with the following properties: The
first digit of the number is 6. If we remove this first digit and tack it onto
the end of the number, we obtain a new integer, whose value is exactly
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
Number Digits 7
(StU-07-A5)
Problem 1.34:
The number googol is defined as 10100 . How many nines are there in the
number we obtain by subtracting 1994001994 from a googol?
(O-94-4)
Problem 1.35:
The (four-digit) number of a year can be turned upside-down if the number
is made up only of digits 0, 1, 6, 8 and 9. In the year 1996, this was possible,
for instance, and calculating the difference between the number of the year
and its upside-down version gives us 9661 − 1996 = 7665. Determine
the largest and smallest possible non-negative differences we can obtain by
determining such differences. (Note that the first digit of the number of a year
cannot be 0.)
(O-96-2)
TIPS
Tip for Problem 1.1:
If the sum of six digits is less than 6, some of those digits will have to be
zeros.
Tip for Problem 1.2:
Find out which digits the decimal representation of a four-digit number with
this property might consist of.
Tip for Problem 1.3:
How many digits can numbers less than 100 have?
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 8
Number Digits 9
Number Digits 11
SOLUTIONS
Solution for Problem 1.1:
There are two ways in which six digits can add up to 2. Either four of the
digits are zeros and two are ones, or five are zeros and one is a two. In the
second case, there can only be one such number, as the two must be the first
digit, since the first digit of a number can never be a zero. In the first case,
the first digit must be one of the ones for the same reason, but the other one
can be any one of the remaining five digits, and there are therefore five such
numbers. We see that there are six numbers of this type altogether, namely
natural numbers that consist of either two digits 1 and two digits 3 or of
three digits 1 and one digit 9.
In the first case, we get the numbers 1133, 1313, 1331, 3113, 3131 and
3311, and in the second case, we get the numbers 1119, 1191, 1911 and
9111.
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
In total, there are therefore ten four-digit numbers, whose digits have 9
as their product.
Solution for Problem 1.3:
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
A positive integer less than 100 can have either one or two digits. The
only one-digit number with 6 as the “sum” of its digits is 6 itself. All we
therefore really need to do is count the number of two-digit numbers with
this property. The first digit (i.e. the tens-digit) must be a number from
1 to 6, and the ones-digit is uniquely determined by the tens-digit, since
they must sum to 6. The only possible numbers of this type are therefore
Number Digits 13
How many such numbers are there then in total? With hundreds-digit 6,
there exist as many as there are two-digit numbers with the sum of their dig-
its being 6 − 6 = 0, namely 1 (specifically, 00). Similarly, with hundreds-
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
digit 5, there exist as many as there are two-digit numbers with the sum
of their digits being 6 − 5 = 1, namely 2. With hundreds-digit 4, there
exist 3, with hundreds-digit 3, there exist 4, with hundreds-digit 2, there
exist 5 and with hundreds-digit 1, there exist 6. Altogether, this gives us
1 + 2 + 3 + 4 + 5 + 6 = 21 three-digit numbers with the sum of their dig-
its being 6.
These numbers can also be written out explicitly:
600
501 510
402 411 420
303 312 321 330
204 213 222 231 240
105 114 123 132 141 150
How many numbers with the sum of their digits being 6 are there then
altogether? We know that there are 1-, 2- and 3-digit numbers of this type.
Adding them up, we see that there exist
1 + 6 + 21 = 28
such numbers.
There is another way to do this as well. We can think of numbers with
less than three digits as numbers whose hundreds-digit (and possibly also
their tens-digit) is 0. If we think of the problem in this way, we do not need to
differentiate the one- and two-digit numbers from the three-digit ones, since
we can simply say that their total number is equal to the number of two-digit
numbers with the sum of their digits being 6 (with 0 allowed as a tens-digit
as well). There are 7 such numbers, and, with the same reasoning we used
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 14
before, the total number of three-digit numbers with the sum of their digits
being 6 (and 0 allowed as the hundreds-digit) is therefore equal to
1 + 2 + 3 + 4 + 5 + 6 + 7 = 28.
Solution for Problem 1.5:
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
number cannot be 0. This means that there are no such numbers N with the
ones-digit 0.
We can now consider what happens whenever we raise the value of the
ones-digit of N by 1. If the ones-digit of N is 1, the hundreds-digit must
also be 1, and the tens-digit must therefore be 1 − 1 = 0. The only such
number is therefore 101.
If the ones-digit of N is 2, the hundreds-digit h of N can be either
1 or 2, with the tens-digit being equal to 2 − h. There are two such numbers,
namely 202 and 112.
If the ones-digit of N is 3, the hundreds-digit h of N can be either 1, 2
or 3, with the tens-digit being equal to 3 − h. There are three such numbers,
namely 303, 213 and 123.
A similar idea shows us what happens for any ones-digit n. For any
given n and any hundreds-digit h from 1 to n, the tens-digit must be equal
to n − h, yielding n numbers with the required property. This means that the
total number of three-digit numbers with the required property is equal to
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45.
Solution for Problem 1.6:
If we know that a number is equal to seven times another number, it must be
a multiple of seven. There are not that many two-digit multiples of seven,
and it is not difficult to simply make a complete list of them:
14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 84, 91, 98.
Checking these, we see that
21 = (2 + 1) × 7, 42 = (4 + 2) × 7, 63 = (6 + 3) × 7 and 84 = (8 + 4) × 7
have the required property. There are therefore four such numbers.
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 15
Number Digits 15
This rest is only possible if the divisor is 18, however, and the only
number with digit sum 18 is 99. Dividing 99 by 18 does not leave this rest,
however, since we have
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
99 = 5 × 18 + 9.
89 = 5 × 17 + 4 and 98 = 5 × 17 + 13,
79 = 4 × 16 + 15
holds, we see that 15 does indeed show up as a rest after division of the
number 79 by the sum of its digits, and this is therefore the largest possible
such a rest.
Solution for Problem 1.10:
The largest two-digit number is 99. Since this number also has the largest
possible digits (i.e. both are nines), the sum of the digits is 9 + 9 = 18,
and the sum of the number with the sum of its own digits is equal to
99 + 18 = 117. Since both the number and the digits are maximal, this
is also the largest attainable sum.
The argument for the small case is similar. The smallest two-digit number
is 10. The sum of its digits is 1 + 0 = 1, and this is certainly the smallest
possible value, since 0 is not attainable, as it would mean that all of the digits
of a number are 0, which is only the case for 0 itself, which is not a two-digit
number. Here, we therefore obtain the sum 10 + 1 = 11. Since both the
number and the digits are minimal, this is also the smallest attainable sum.
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 17
Number Digits 17
three-digit number (or even for a number with at most three digits) is equal
to 999 + 27 = 1026, which is quite a bit too small.
Note that the number 1026 is “almost” 2016; we only need to exchange
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
the tens- and thousands-digits. This would seem to imply that the calculation
leading to this specific result could be modified just a bit to obtain a solution.
It isn’t really immediately clear what this slight modification could be,
though, so we will need to dive more deeply into this one.
So, what could be a next step? Well, we know that any number with the
required property must have four digits. The first digit can obviously not
be larger than 2, since the resulting sum would otherwise be too large. It
follows that the first digit could only conceivably be 1 or 2.
What if the first digit is a 2? Since the number in question must be
smaller than 2016, it can either be of the form 200∗ or 201∗ , with the
star standing in for the ones-digit in each case. In the first case, the sum
of the digits is 2 + 0 + 0 + ∗ = 2 + ∗ , and adding the number to the
sum of its digits gives us 200∗ + 2 + ∗ . Since this is to be equal to 2016,
we have ∗ + 2 + ∗ = 16, or ∗ = 7, giving us the number 2007. This
number does indeed have the required property, since the sum of its digits
is 2 + 0 + 0 + 7 = 9, and 2007 + 9 = 2016. In the second case, the sum
of the digits is 2 + 0 + 1 + ∗ = 3 + ∗ , and adding the number to the sum of
its digits gives us 201∗ + 3 + ∗ . Since this is to be equal to 2016, we have
10 + ∗ + 3 + ∗ = 16. Unfortunately, this gives us ∗ + ∗ = 3, and this is not
possible if ∗ is a digit. There is therefore no number of this type with the
required property.
Now, what if the first digit is a 1? Each of the other three digits must
than be less than, or equal to, 9, and the sum of the digits is therefore at most
1 + 9 + 9 + 9 = 28. The number we are looking for may therefore not be
less than 2016 − 28 = 1988. We therefore once again have two options to
consider. The number can either be of the form 199∗ or 198∗ , with the star
again standing in for the ones-digit in each case. In the first case, the sum of
the digits is 1 + 9 + 9 + ∗ = 19 + ∗ , and adding the number to the sum of its
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 18
In summary, we see that there are two numbers with the required
property, namely 1989 and 2007.
Solution for Problem 1.12:
In principle, the product of the digits of the number in question could be
any power of three greater than or equal to 27. In fact, this will not apply,
however. Since the product of the digits is not divisible by any prime other
than three, this must also be true of each of the individual digits. We now
note that there are only three digits not divisible by some other prime,
namely 1, 3 and 9 = 32 . Any number with these three digits will indeed
have 1 × 3 × 9 = 27 as the product of its digits, but no other combination
of digits is possible. It follows that the sum of the digits we are asked to
determine is 1 + 3 + 9 = 13.
Solution for Problem 1.13:
The sum of the digits of 24 is 2 + 4 = 6. Any of its two-digit in-laws must
therefore be multiples of 6. Since the divisors of 24 are 1, 2, 3, 4, 6, 8, 12 and
24 (yes, there are a lot of them), these numbers are candidates for the sums
of digits of the in-laws of 24. We therefore only need to list the two-digit
multiples of 6, and check to see in which cases the sums of their digits are
numbers on this list.
The following table contains all two-digit multiples of 6 in the top row
and the sums of their digits underneath them:
12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
3 9 6 3 9 6 12 9 6 12 9 15 12 9 15
Checking the list of candidate sums (and noting that 24 cannot be its
own in-law), we see that the in-laws of 24 are the seven numbers 12, 30,
42, 48, 60, 66 and 84.
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 19
Number Digits 19
let t denote the tens-digit of some number b in B, we are given that the
ones-digit is smaller by one, and must therefore be equal to t − 1. On the
other hand, we are also given that the hundreds-digit is larger by one, and
it must therefore be equal to t + 1. The sum of the digits of b is therefore
equal to (t + 1) + t + (t − 1) = 3t, and since the sum of the digits of
b is a multiple of three, we know that b itself must also be divisible by
three.
In summary, this means that all elements of A are divisible by 3, as are
all elements of B. No matter how we choose the numbers a and b, three
will therefore always be a common divisor, and it is therefore not possible
to choose numbers in the required way.
the sum of its digits, which is equal to 4t + 6, which is obviously even and
less than 36, must be divisible by 9 as well. We therefore have 4t + 6 = 18
and, finally, t = 3. This means that N certainly exists, with 9N = 3456
and N = 3456 ÷ 9 = 384.
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
Number Digits 21
this division leaves, of course). The other kind of numbers they don’t use,
are those including the digit 3, and there are 19 of those between 1 and 100,
namely those ending in 3, like 3, 13, 23, 33, 43, . . . , 93 and those beginning
with 3, like 30, 31, . . . , 39. Since there are ten of each, that would seem to
mean that there are 20 numbers written with the digit 3, but 33 has both of
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
100 − 33 − 19 + 7 = 55,
The number of year that have passed between those two is, of course,
Number Digits 23
containing exactly two different digits 1 and a, namely numbers of the types
11a, 1a1 and 1aa. Since a can be any of the ten digits from 0 to 9 with the
exception of 1, this gives a total of 3 × 9 = 27 numbers of this type.
Altogether, there are therefore 81 + 27 = 108 numbers with the desired
properties.
Solution for Problem 1.26:
Any number composed of k times the digit 9, is one less than the kth power
of ten, since this number is simply written as a 1 followed by k zeros. This
means that we can write
a = 1020 − 1 and b = 1012 − 1.
Their product can therefore be written as
a × b = (1020 − 1) × (1012 − 1),
and some simple calculation gives us
(1020 − 1) × (1012 − 1) = 1032 − 1020 − 1012 + 1.
This may seem like a really complicated expression, but the structure of this
number is really quite simple when you take a closer look. Just consider
part of the number, i.e. 1032 − 1012 . What happens when you subtract a
smaller power of ten from a larger one? Consider the expression 105 − 102 .
This can also be written in the following way:
105 − 102 = 100000 − 100 = 99900.
If we describe this in words, we can say that we subtract the number with
a 1 followed by 2 zeros from the number with a 1 followed by 5 zeros, and
obtain a number made up of 3 nines and 2 zeros. The three results from
5 − 2 = 3. By way of analogy, it should now be clear that the result of
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 24
1032 − 1012 , i.e. subtracting the number with a 1 followed by 12 zeros from
the number with a 1 followed by 32 zeros, results in a number made up of
32 − 12 = 20 nines and 12 zeros. Subtracting 1020 (i.e. a 1 followed by
20 zeros) from this number will just reduce the 21st digit from the end by
1, and thus change one of the nines to an eight. Similarly, adding 1 to the
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
19 × 9 + 1 × 8 + 11 × 0 + 1 × 1 = 171 + 8 + 0 + 1 = 180.
Number Digits 25
Now, we can use the 8 as the second digit of the resulting number. It is
the largest of the remaining digits, and there are only two digits between
the leading digit 7 and this digit. We therefore delete the digits between the
7 and the 8, and obtain 78425 as the largest possible result.
Since we deleted the digit 1 in the first step, the digits 4 and 6 in the
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
second, and the digits 6 and 5 in the third, the sum of the deleted digits is
equal to
1 + 4 + 6 + 6 + 5 = 22.
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
Number Digits 27
means that the 8 and the 7 must be the tens-digits of the two numbers,
and this leaves us only two options for the numbers. Checking the possible
products, we obtain
85 × 72 = 6120 and 82 × 75 = 6150,
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
and the largest possible product we are searching for is therefore 6150.
Solution for Problem 1.32:
Charlie’s notation always gives the digit followed by the number of times in
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
We can now note that subtracting 1994001994 from some number can
also be done by first subtracting 1 and then subtracting 1994001993 in a
second step. We already know that the result of the first subtraction gives
us a number composed of 100 nines. Subtracting 1994001993 from this
number does not affect the first 90 digits at all, but the last ten digits of the
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
There are only two nines left in this part, and together with the 90 nines
to the left of it, we see that the result of the subtraction is a number with
2 + 90 = 92 nines.
Solution for Problem 1.35:
First of all, let us see how we can obtain a maximum difference. We want
to subtract something very small from something very large. Obviously, the
largest possible numbers will start with large digits, and the largest possible
are two nines. The smallest possible will start with small digits, and the
smallest possible are zero and one. The best candidate for a maximum
difference therefore appears to be
9901 − 1066 = 8835.
This is indeed the best we can do, since any combination of lead digits other
than 99 and 10 will certainly yields lead digits less than 88 in the difference.
Now, what about minimizing the difference. This is a whole different
kettle of fish. Of course, the smallest possible difference is zero, since we
could consider 8888 − 8888 or 1111 − 1111, each of which would yield 0,
as well as several other numbers that don’t change when you flip them, like
1961 or 1881, and you get full points for finding this answer.
The more interesting question to ponder here however is to find the
smallest possible positive difference we can get. How can we minimize the
difference under the assumption that the number changes when we flip it?
Considering the cases of 1111 and 8888 does give us the idea that we
could use 1 or 8 both as the first and last digits, because this will certainly
result in a difference with less than four digits. A good option seems to be
1981 − 1861 = 120,
but how do we decide whether this is the smallest we can get?
October 9, 2020 12:0 Mathematical Nuggets from Austria: Selected … 9in x 6in b3889-ch01 page 29
Number Digits 29
Let us consider a number abcd. If the first and last digit do not flip to each
other, the difference will have a thousands-digit that can only be eliminated
by a carry-over. The best we can then do in the hundreds-digit is then 0 − 9,
but this results in 6 − 0 in the tens-digit by flipping, and the difference
will therefore certainly have at least three digits. We can, however attain
by 51.52.162.66 on 08/14/23. Re-use and distribution is strictly not permitted, except for Open Access articles.
a difference with two digits by letting the first and last digits flip to each
other, and keeping the hundreds- and tens-digits separated by only one.
There are only two combinations that could make this possible, namely
1 − 0 and 9 − 8. Our best options are therefore the already suggested
Mathematical Nuggets from Austria Downloaded from www.worldscientific.com
1981 − 1861 = 120 (which is also attainable with other first-last digit
combinations, like 6989 − 6869, for instance, and does not yield a two-
digit difference) and 1101 − 1011 = 90 (which is again attainable in other
ways, like 9106 − 9016). This is actually the only way to obtain a two-digit
difference, and the smallest possible difference is therefore 90.