IMO Shortlist 1977 problem 5
Kvaliteta:
Avg: 0,0Težina:
Avg: 0,0 There are words of length over the alphabet . Prove that the following algorithm generates the sequence of all these words such that any two consecutive words differ in exactly one digit.
(1) ( zeros).
(2) Suppose . Let be the exponent of in the representation of as a product of primes, and let . Replace the digit in the word by . The obtained word is .
(1) ( zeros).
(2) Suppose . Let be the exponent of in the representation of as a product of primes, and let . Replace the digit in the word by . The obtained word is .
Izvor: Međunarodna matematička olimpijada, shortlist 1977