Determine the total number of values of a positive integer N having at most four digits such that:
(i) The digit 1 occurs an odd number of times in N, and:
(ii) Each of the digits 2, 0 and 6 occurs an even number of times in N. (An even number includes zero), and:
(iii ) Any of the remaining six digits may or may not occur in N.
(In reply to re(2): My answers (with and without leading zeros)
by Ady TZIDON)
You are absolutely correct I did not initialize the counts of zeros, etc. for each new numbar and so the odd/even count was based on the total of all the numbers thus far.
Posted by Charlie
on 2016-04-05 22:28:01