a能被b整除,是a/b还是b/a? a能整除b与a能被b整除有什么区别列出算
a\u80fd\u6574\u9664b\u4e0ea\u80fd\u88abb\u6574\u9664\u6709\u4ec0\u4e48\u533a\u522ba\u80fd\u6574\u9664b\u4e0ea\u80fd\u88abb\u6574\u9664\u6709\u4ec0\u4e48\u533a\u522b
a\u80fd\u6574\u9664b,\u662f\u8bf4B\u9664\u4ee5A\u7684\u7ed3\u679c\u4e3a\u6574\u6570.
\u5982:3\u80fd\u6574\u96646
a\u80fd\u88abb\u6574\u9664,\u662f\u8bf4A\u9664\u4ee5B\u7684\u7ed3\u679c\u662f\u6574\u6570.
\u5982:6\u80fd\u521d3\u6574\u9664.
\u8fd9\u5b9e\u9645\u5c31\u662f\u8bed\u6587\u4e0a\u7684\u628a\u5b57\u53e5\u548c\u88ab\u5b57\u53e5.
A\u80fd\u628aB\u6574\u9664\u4e0eB\u80fd\u88abA\u6574\u9664,\u8fd9\u4e24\u53e5\u7b49\u6548.
a\u80fd\u6574\u9664b\u4e0ea\u80fd\u88abb\u6574\u9664\u7684\u533a\u522b\uff1a
1\u3001\u8868\u8fbe\u542b\u4e49\u4e0d\u540c\uff1a
a\u80fd\u6574\u9664b\uff0c\u8868\u793a\u7684\u662fa\u662fb\u7684\u500d\u6570\u3002a\u80fd\u88abb\u6574\u9664\uff0c\u8868\u793a\u7684\u662fb\u662fa\u7684\u500d\u6570\u3002
2\u3001\u8868\u8fbe\u5f62\u5f0f\u4e0d\u540c\uff1a
a\u80fd\u6574\u9664b\uff0c\u8868\u793aa\u00f7b\uff0ca\u80fd\u88abb\u6574\u9664\uff0c\u8868\u793ab\u00f7a\u3002
3\u3001\u5927\u5c0f\u4e0d\u540c\uff1a
a\u80fd\u6574\u9664b\uff0c\u8868\u793aa\u5927\u4e8eb\uff0ca\u80fd\u88abb\u6574\u9664\uff0c\u8868\u793ab\u5927\u4e8ea\u3002
\u6269\u5c55\u8d44\u6599\uff1a
\u6574\u9664\u7684\u6027\u8d28\uff1a
\u2460\u82e5b|a\uff0cc|a\uff0c\u4e14b\u548cc\u4e92\u8d28\uff0c\u5219bc|a\u3002
\u2461\u5bf9\u4efb\u610f\u975e\u96f6\u6574\u6570a\uff0c\u00b1a|a=\u00b11\u3002
\u2462\u82e5a|b\uff0cb|a\uff0c\u5219|a|=|b|\u3002
\u2463\u5982\u679ca\u80fd\u88abb\u6574\u9664\uff0cc\u662f\u4efb\u610f\u6574\u6570\uff0c\u90a3\u4e48\u79efac\u4e5f\u80fd\u88abb\u6574\u9664\u3002
\u2464\u5982\u679ca\u540c\u65f6\u88abb\u4e0ec\u6574\u9664\uff0c\u5e76\u4e14b\u4e0ec\u4e92\u8d28\uff0c\u90a3\u4e48a\u4e00\u5b9a\u80fd\u88ab\u79efbc\u6574\u9664\uff0c\u53cd\u8fc7\u6765\u4e5f\u6210\u7acb\u3002
\u2465\u5bf9\u4efb\u610f\u6574\u6570a\uff0cb>0\uff0c\u5b58\u5728\u552f\u4e00\u7684\u6570\u5bf9q\uff0cr\uff0c\u4f7fa=bq+r\uff0c\u5176\u4e2d0\u2264r<b\uff0c\u8fd9\u4e2a\u4e8b\u5b9e\u79f0\u4e3a\u5e26\u4f59\u9664\u6cd5\u5b9a\u7406\uff0c\u662f\u6574\u9664\u7406\u8bba\u7684\u57fa\u7840\u3002
第二个
b/a
b/a
b/a
绛旓細A鑳借B鏁撮櫎锛屾槸鐢˙闄鑳介櫎灏斤紝涔熷嵆A闄や互B锛屽緱鍒版暣鏁
绛旓細a鑳借b鏁撮櫎鏄痑闄や互b銆傝嫢鏁存暟b闄や互闈為浂鏁存暟a锛屽晢涓烘暣鏁帮紝涓斾綑鏁颁负闆讹紝鎴戜滑灏辫b鑳借a鏁撮櫎锛堟垨璇碼鑳芥暣闄锛夛紝b涓鸿闄ゆ暟锛宎涓洪櫎鏁帮紝鍗砤|b锛岃浣溾渁鏁撮櫎b鈥濇垨鈥渂鑳借a鏁撮櫎鈥濄俛鍙綔b鐨勭害鏁帮紙鎴栧洜鏁帮級锛宐鍙綔a鐨勫嶆暟銆傝兘琚19鏁撮櫎鐨勬暟鐨勭壒寰 1銆佽嫢涓涓暣鏁扮殑涓綅鏁板瓧鎴幓锛屽啀浠庝綑涓嬬殑鏁颁腑...
绛旓細鎵浠ワ細鍙兘A澶э紝涔熷彲鑳紸鍜B鐩哥瓑銆
绛旓細a鏁撮櫎b鏄痓闄銆傝В鏋愶細棣栧厛锛宎鏁撮櫎b鐨勬剰鎬濇槸a闄や互b鑳芥暣闄わ紝鍗砤闄や互b鐨勫晢鏄暣鏁般備篃鍙互璇存垚b鑳借a鏁撮櫎銆傚垪鍑虹畻寮忔槸a?b 鍏舵锛屽繀椤诲紕娓呮鈥滈櫎鈥濆拰鈥滈櫎浠モ濇槸鏈夊尯鍒殑銆傛瘮濡傦紝a?b璇讳綔鈥渁闄や互b鈥濇垨鑰呰浣溾渂闄鈥濄備篃灏辨槸璇达紝鍦ㄤ竴涓櫎娉曠畻寮忎腑锛屽鏋滄寜鐓ц闄ゆ暟銆侀櫎鍙枫侀櫎鏁扮殑椤哄簭渚濇璇伙紝瑕...
绛旓細鍒ゆ柇a鑳藉惁琚玝鏁撮櫎闈炲父绠鍗曪紝鍙渶瑕佷娇鐢ㄥ彇妯¤繍绠楋紝鍗砤 mod b銆濡傛灉缁撴灉鏄0锛岄偅涔堣〃鏄巃鑳借b鏁撮櫎锛涘鏋滅粨鏋滀笉涓0锛岄偅涔坅涓嶈兘琚玝鏁撮櫎銆備緥濡傦紝濡傛灉鎴戜滑鎯崇煡閬15鑳藉惁琚3鏁撮櫎锛岄偅涔堟垜浠彲浠ヨ繘琛岃绠15 mod 3锛屽緱鍒扮殑缁撴灉鏄0锛屾剰鍛崇潃15鍙互琚3鏁撮櫎銆傚湪缂栫▼涓紝鎴戜滑鍙互鐢ㄨ繖绉嶆柟娉曞疄鐜扳渁鑳藉惁琚玝鏁撮櫎鈥濈殑...
绛旓細1. 褰a鑳藉琚玝鏁撮櫎鏃讹紝鎴戜滑鍙互璇碼琚玝闄ゅ敖锛屾暟瀛︿笂琛ㄧず涓篴梅b=鏁存暟锛屽叾涓璦琚О涓鸿闄ゆ暟銆2. 鍦ㄨ繖涓櫎娉曡繃绋嬩腑锛宐鏄櫎鏁帮紝鑰a鏄琚櫎鏁帮紝鍥犱负a琚玝闄ゅ悗寰楀埌鐨勬槸涓涓暣鏁扮粨鏋溿3. 濡傛灉a闄や互b鐨勭粨鏋滄槸涓涓病鏈夊皬鏁伴儴鍒嗙殑鏁帮紝鍗崇粨鏋滄槸涓涓暣鏁帮紝閭d箞a灏辨槸琚櫎鏁般4. 琚櫎鏁癮鏄寚閭d釜琚玝闄ょ殑...
绛旓細锛1锛夊鏋,a梅b=c 锛坅銆乥銆乧鍧囨槸涓嶇瓑浜0鐨勮嚜鐒舵暟锛, 鎴戜滑灏辫锛a鑳借b鏁撮櫎锛涙垨b鑳芥暣闄. 锛2锛夌敤鏁板瓧涓句緥鏄細6梅2=3,6鑳借2鏁撮櫎,2鑳芥暣闄6.6鏄2鐨勫嶆暟,2鏄6鐨勫洜鏁. 锛2锛夊洜涓洪涓锛欰鑳鏁撮櫎B,閭d箞,B鏄疉鐨勫嶆暟,A鏄B鐨勫洜鏁 ...
绛旓細A鏄琚櫎鏁帮紝B鏄櫎鏁帮紝鏁A鑳借B鏁撮櫎鏄鎸嘇/B.杩欎釜闂锛屼粠鍙よ嚦鈥滄暀鏀光濆墠锛屽簲璇ユ槸鎸嘇/B.浣嗚繎鏉ュ惉璇,鍦ㄢ滃皬瀛﹁鏈濅笂鏈夆滈鍊掆濈殑璇存硶锛屼絾鎴戞湭瑙佸埌杩欑鈥滆鏈濄傛棦鐒舵ゼ涓绘彁杩欑鈥滅畝鍗曗濆熀纭姒傚康棰橈紝鎯冲繀鏄冭冩垜浠繖浜涘彈杩団滄棫鏁欒偛鈥濈殑浜猴紝鏄惁鏈夆滄柊鈥濈煡璇嗗惂锛
绛旓細濡傛灉a鑳借b鏁撮櫎锛锛坆鈮0锛夛紝閭d箞a鏄b鐨勫嶆暟锛宐鏄痑鐨勫洜鏁般備竴涓暣鏁拌兘澶熻鍙︿竴涓暣鏁版暣闄わ紝杩欎釜鏁存暟灏辨槸鍙︿竴鏁存暟鐨勫嶆暟銆備竴涓暟闄や互鍙︿竴鏁版墍寰楃殑鍟嗐備竴涓暟鐨勫嶆暟鏈夋棤鏁颁釜锛屼篃灏辨槸璇翠竴涓暟鐨勫嶆暟鐨勯泦鍚堜负鏃犻檺闆嗐傛敞鎰忥細涓嶈兘鎶婁竴涓暟鍗曠嫭鍙仛鍊嶆暟锛屽彧鑳借璋佹槸璋佺殑鍊嶆暟銆備袱涓垨澶氫釜鏁存暟鍏湁鐨...
绛旓細A鑳借B鏁撮櫎锛屾槸A闄や互B,涔熷彨B鑳芥暣闄 濡:8鑳借2鏁撮櫎,鏄8闄や互2,涔熷彲浠ュ彨浣,2鑳芥暣闄8.杩欐槸绾﹀畾鎴愪織鐨勮娉.鏃犳墍涓轰粈涔.