Author |
Topic: Multiple with all odd digits (Read 819 times) |
|
Aryabhatta
Uberpuzzler
Gender:
Posts: 1321
|
|
Multiple with all odd digits
« on: Mar 11th, 2010, 6:18pm » |
Quote Modify
|
For any natural number n, there is an n digit multiple of 5n such that each of the n digits is odd (working in base-10, of course). Prove. E.g: 54*15 = 9375, a 4-digit number with all odd digits.
|
|
IP Logged |
|
|
|
towr
wu::riddles Moderator Uberpuzzler
Some people are average, some are just mean.
Gender:
Posts: 13730
|
|
Re: Multiple with all odd digits
« Reply #1 on: Mar 12th, 2010, 2:18am » |
Quote Modify
|
Suppose we have an n-1 all-odd-digit number 5n-1*k, then we can try to put an odd digit in front of it, such that 5n-1*k + 5n-1*2n-1*m = 5n*l (where m {1,3,5,7,9} is the new front digit) So given a k, we need to find an m that satisfies k + 2n-1*m = 5*l. Because 5 and 2 are coprime, we can always find an m = -k/2n-1 (mod 5) = -k*3n-1 (mod 5). This gives us an 0 <= m < 5, but if m is even we can just add 5 to get an odd 0 < m < 10.
|
« Last Edit: Mar 12th, 2010, 2:29am by towr » |
IP Logged |
Wikipedia, Google, Mathworld, Integer sequence DB
|
|
|
Aryabhatta
Uberpuzzler
Gender:
Posts: 1321
|
|
Re: Multiple with all odd digits
« Reply #2 on: Mar 12th, 2010, 8:54am » |
Quote Modify
|
Correct! Well done.
|
|
IP Logged |
|
|
|
|