How would I go about solving this question without ‘brute forcing’ it? (By this, I mean is there a trick to doing so? I figured that it had something to do with halves and so this made it easier for me to lower the number of odds satisfying this condition):
The number
371
has only odd digits, since
3
,
7
and
1
are all odd. The number
493
does not have only odd digits, since
4
is even. The number
339
has only odd digits, but the number
3
is repeated. How many numbers
n
with
1
≤
n
<
10000
have only odd digits such that no digits are repeated?