Count by Cases.

来源: dr_yin 2015-11-18 17:30:05 [] [旧帖] [给我悄悄话] 本文已被阅读: 0 次 (738 bytes)
回答: tough math problem asking for helpmomoftwok2015-11-18 10:18:27

Count by Cases:

Case 1: abc and bcd are both divisible by 17:

abc0-bcd is divisible by 17.  a000-d is divisble by 17. Since 1000 = -3 (mod 17), we get 3a+d = 0 (mod 17).

a=3 and d=8.

bc8 is 17 times x4, where x = 0, 1, 2, 3, 4, 5.

Note that b and c cannot be 0. I found solutions 35782, 37483, 39187 and 39184.

There are 4 solutions in this case.

Case 2: abc and bcd are both divisible by 23:

 a000-d is divisble by 23. Since 1000 = -12 (mod 23), we get 12a+d = 0 (mod 23).

No solution in this case

It is tedious to work out all cases.

 

 

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”