Rewriting each number in base 3:
3^1998 + (3^2)^999 + (3^3)^n = 3^1999
3^1998 + 3^1998 + 3^(3n) = 3^1999
It takes 3 3^1998s to make 3^1999 as 3 x 3^1998 = 3^1999
Therefore 3^(3n) = 3^1998
so 3n = 1998 and n = 666 
It takes 3 3^1998s to make 3^1999 as 3 x 3^1998 = 3^1999
Therefore 3^(3n) = 3^1998
so 3n = 1998 and n = 666 
Q: A trader had gold coins but did not tell anyone how many she had. If the coins are divided into two different sized groups, then 32 times the difference between the two numbers is equal to the difference between the squares of the two numbers. How many gold coins did she have?
A: The merchant has 32 gold coins.
It is easy to check this… Let’s divide the 32 coins into two unequal numbers, say, 27 and 5. Then, 32 (27 – 5) = (27 x 27) – (5 x 5).
We can also check this by dividing the 32 coins into 30 and 2.
Then, 32(30-2) = (30 x 30) – (2 x 2).
This will work for any two numbers that add to 32. If we call the two numbers x and y:
32 (x – y) = x^2 – y^2
So x + y = 32 and therefore y = 32 – x
Then we can rewrite the above as:
32(x – (32 – x)) = x^2 – (32 – x)^2
32(x – 32 + x) = x^2 – (1024 – 64 x + x^2)
32(2x – 32) = x^2 – 1024 + 64x – x^2 (the x^2s cancel)
64x – 1024 = 64x – 1024 :)
A: The odds are 11:1 (against) and the probability is 1/12.
If we imagine that they sat down in age order randomly:
The first person is random.
Q: How many three-digit numbers satisfy the property that the middle digit is the average of the first and the last digits?
A: 45
With 1 as a middle digit, there are two three digit numbers whose middle digit is the average of the first and last digits: 111 and 210
There are 4 numbers with 2 as a middle digit: 123, 220, 321, 420
There are 6 numbers with 3 as a middle digit: 135, 234, 333, 432, 531, 630
There are 8 numbers with 4 as a middle digit: 147, 246, 345, 444, 543, 642 741, 840
There are 9 numbers with 5 as a middle digit: 159, 258, 357, 456, 555, 654, 753 852, 951
There are 7 numbers with 6 as a middle digit: 369, 468, 567, 666, 765, 864, 963
There are 5 numbers with 7 as a middle digit: 579, 678, 777, 876, 975
There are 3 numbers with 8 as a middle digit: 789 888, 987
There is 1 number with 9 as a middle digit: 999
Total: 2 + 4 + 6 + 8 + 9 + 7 + 5 + 3 + 1 = 45
Another way to solve this problem is to note that the middle digit is half the sum of the first and third digit so the sum must be even to result in a whole number when divided by 2. To get two numbers to add to an even number they must be both odd or both even. Notice this in the list of 3 digit numbers above!
If both the first digit and the last digit are odd, then 1, 3, 5, 7, or 9 are choices for each of these digits, and there are
numbers in this case.
If both the first and last digits are even, then 2, 4, 6, 8 are choices for the first digit and 0, 2, 4, 6, 8 for the third digit. There are
numbers here. 25 + 20 = 45