+0  
 
0
452
3
avatar

What is the 1000th positive integer that contains only even digits?

 Jun 9, 2020
 #1
avatar
0

The number is = 2000 - zero is cosidered and even digit. The next one without zero would be 2222.

 Jun 10, 2020
 #2
avatar+23245 
0

Below 100, we have: 

2, 4, 6, 8, 20, 22, 24, 26, 28, 40, 42, 44, 46, 48, 60, 62, 64, 66, 68, 80, 82, 84, 86, 88   =  [24]

From 200 - 300, we get 200 plus all the above numbers (prefixed with a 2)                        [25]

From 400 - 500                                                                                                                     [25]

From 600 - 700                                                                                                                     [25]

From 800 - 900                                                                                                                     [25]     =  124

 

From 2000 - 3000                                                                                                               [125]

From 4000 - 5000                                                                                                               [125]

From 6000 - 7000                                                                                                               [125]

From 8000 - 9000                                                                                                               [125]  =  624

 

From 20000 - 21000                                                                                                            [125]

From 22000 - 23000                                                                                                            [125]     

From 24000 - 25000                                                                                                            [125]  =  999

 

26000                                                                        

 Jun 10, 2020
 #3
avatar
0

With a short computer code I can verify geno3141's answer. You must have the patience of Job !

 

n=1;a=30000;s=0;m=n;p=0;n=m;cycle:if(n%2==0 and int(n/10)%2==0 and int(n/100)%2==0 and int(n/1000)%2==0 and int(n/10000)%2==0, goto loop, goto next);loop:print", ",n,;p=p+1;next:n++;if(n<=a, goto cycle,discard=0;print">Total Num =", p

 

 

OUTPUT: =26,000 as being the 1000th integer with all of its digits EVEN.

 Jun 10, 2020

4 Online Users

avatar
avatar