The number of digits of a number is given by [log(x)]+1
where [ ] denotes the greatest integer and the logarithm is base 10.
So we are trying to show [log(4
n)]+1 +[log(25
n)]+1 is odd
which is equivalent to showing [log(4
n)]+[log(25
n)] is odd
[log(4
n)]+[log(25
n)] = [n*log(4)]+[n*log(25)]
= [n*(2-log(25))]+[n*log(25)]
= [2n - n*log(25)]+[n*log(25)]
What I now need to show is for any integer a and non-integer b
[a-b]+[b] = a-1
which it is because
[a-b]=a+[-b]
and
[-b]+[b]=-1
So the above expression becomes 2n-1
|
Posted by Jer
on 2014-04-29 14:10:04 |