There is a natural number that satisfies the conditions below.
Expressing in heximal yields a -digit heximal number.
That heximal contains only non-zero digits.
Every pair of neighboring digits in that heximal has a difference of .
To clarify, I'll give you some examples.
(1) is correct.
(2) is incorrect because there is a digit .
(3) is incorrect because the pair of does not have a difference of .
How many values for are there?
Notation: Heximal is a base numeral system.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Reading the question, you will realize that the heximal will only contain 1 , 2 , 3 , 4 , 5 .
Let's define a "good" heximal, which is an n -digit heximal that contains only non-zero digits, where every pair of neighboring digits in it has a difference of 1.
A n is the number of "good" n -digit heximals that end with either 1 or 5 .
B n is the number of "good" n -digit heximals that end with either 2 or 4 .
C n is the number of "good" n -digit heximals that end with 3 .
n is a non-negative integer.
Then we know that what we're trying to get is A 1 0 + B 1 0 + C 1 0 .
Then, for convenience, an n -th digit of a number implies it is from the right.
For example, 5 1 3 5 4 's second digit is 5 , and fourth digit is 2 .
Let k be a natural number.
i ) If there's 1 or 5 at the k -th digit, the ( k − 1 ) -th digit must be 2 or 4 , therefore:
A k = B k − 1
i i ) If there's 2 at the k -th digit, the ( k − 1 ) -th digit must be 1 or 3 , and if there's 4 at the k -th digit, the ( k − 1 ) -th digit must be 3 or 5 , therefore:
B k = A k − 1 + 2 C k − 1
i i i ) If there's 3 at the k -th digit, the ( k − 1 ) -th digit must be 2 or 4 , therefore:
C k = B k − 1
From i ) to i i i ) , we get:
B k + 1 = A k + 2 C k = B k − 1 + 2 B k − 1 = 3 B k − 1 B 1 = 2 , B 2 = 4
Therefore, B 2 k − 1 = 2 ⋅ 3 k − 1 , and B 2 k = 4 ⋅ 3 k − 1 .
A n + B n + C n = B n + 2 B n − 1
∴ A 1 0 + B 1 0 + C 1 0 = B 1 0 + 2 B 9 = 4 ⋅ 3 4 + 2 ⋅ 2 ⋅ 3 4 = 6 4 8 .