600 ตัว ใช้วิธี
Modulo_operation
10020,10140,10260,10380,10620,10740,10860,10980,11220,11340,11460,11580,11820,11940,12060,12180,12420,
12540,12660,12780,13020,13140,13260,13380,13620,13740,13860,13980,14220,14340,14460,14580,14820,14940,
15060,15180,15420,15540,15660,15780,16020,16140,16260,16380,16620,16740,16860,16980,17220,17340,17460,
17580,17820,17940,18060,18180,18420,18540,18660,18780,19020,19140,19260,19380,19620,19740,19860,19980,
20220,20340,20460,20580,20820,20940,21060,21180,21420,21540,21660,21780,22020,22140,22260,22380,22620,
22740,22860,22980,23220,23340,23460,23580,23820,23940,24060,24180,24420,24540,24660,24780,25020,25140,
25260,25380,25620,25740,25860,25980,26220,26340,26460,26580,26820,26940,27060,27180,27420,27540,27660,
27780,28020,28140,28260,28380,28620,28740,28860,28980,29220,29340,29460,29580,29820,29940,30060,30180,
30420,30540,30660,30780,31020,31140,31260,31380,31620,31740,31860,31980,32220,32340,32460,32580,32820,
32940,33060,33180,33420,33540,33660,33780,34020,34140,34260,34380,34620,34740,34860,34980,35220,35340,
35460,35580,35820,35940,36060,36180,36420,36540,36660,36780,37020,37140,37260,37380,37620,37740,37860,
37980,38220,38340,38460,38580,38820,38940,39060,39180,39420,39540,39660,39780,40020,40140,40260,40380,
40620,40740,40860,40980,41220,41340,41460,41580,41820,41940,42060,42180,42420,42540,42660,42780,43020,
43140,43260,43380,43620,43740,43860,43980,44220,44340,44460,44580,44820,44940,45060,45180,45420,45540,
45660,45780,46020,46140,46260,46380,46620,46740,46860,46980,47220,47340,47460,47580,47820,47940,48060,
48180,48420,48540,48660,48780,49020,49140,49260,49380,49620,49740,49860,49980,50220,50340,50460,50580,
50820,50940,51060,51180,51420,51540,51660,51780,52020,52140,52260,52380,52620,52740,52860,52980,53220,
53340,53460,53580,53820,53940,54060,54180,54420,54540,54660,54780,55020,55140,55260,55380,55620,55740,
55860,55980,56220,56340,56460,56580,56820,56940,57060,57180,57420,57540,57660,57780,58020,58140,58260,
58380,58620,58740,58860,58980,59220,59340,59460,59580,59820,59940,60060,60180,60420,60540,60660,60780,
61020,61140,61260,61380,61620,61740,61860,61980,62220,62340,62460,62580,62820,62940,63060,63180,63420,
63540,63660,63780,64020,64140,64260,64380,64620,64740,64860,64980,65220,65340,65460,65580,65820,65940,
66060,66180,66420,66540,66660,66780,67020,67140,67260,67380,67620,67740,67860,67980,68220,68340,68460,
68580,68820,68940,69060,69180,69420,69540,69660,69780,70020,70140,70260,70380,70620,70740,70860,70980,
71220,71340,71460,71580,71820,71940,72060,72180,72420,72540,72660,72780,73020,73140,73260,73380,73620,
73740,73860,73980,74220,74340,74460,74580,74820,74940,75060,75180,75420,75540,75660,75780,76020,76140,
76260,76380,76620,76740,76860,76980,77220,77340,77460,77580,77820,77940,78060,78180,78420,78540,78660,
78780,79020,79140,79260,79380,79620,79740,79860,79980,80220,80340,80460,80580,80820,80940,81060,81180,
81420,81540,81660,81780,82020,82140,82260,82380,82620,82740,82860,82980,83220,83340,83460,83580,83820,
83940,84060,84180,84420,84540,84660,84780,85020,85140,85260,85380,85620,85740,85860,85980,86220,86340,
86460,86580,86820,86940,87060,87180,87420,87540,87660,87780,88020,88140,88260,88380,88620,88740,88860,
88980,89220,89340,89460,89580,89820,89940,90060,90180,90420,90540,90660,90780,91020,91140,91260,91380,
91620,91740,91860,91980,92220,92340,92460,92580,92820,92940,93060,93180,93420,93540,93660,93780,94020,
94140,94260,94380,94620,94740,94860,94980,95220,95340,95460,95580,95820,95940,96060,96180,96420,96540,
96660,96780,97020,97140,97260,97380,97620,97740,97860,97980,98220,98340,98460,98580,98820,98940,99060,
99180,99420,99540,99660,99780
ผมลองเขียน Excel Macro ได้ result ข้างบน ใช่ีที่กำลังมองหาหรือปล่าว
For i = 10000 To 99999
If (i Mod 12 = 0) And (i Mod 15 = 0) And (i Mod 8 <> 0) And (i Mod 50 <> 0) Then
Debug.Print i
End If
Next i
หรือว่า อยากทราบวิธีคิดแบบคณิตศาสตร์ตรงๆครับ