本题多解,可以用数学方法找到部分特解。编程枚举,一共有192组解。
具体如下(括号内依次为:被除数、除数、商、余数):
(151,1,151,0); (151,76,1,75); (151,77,1,74); (151,78,1,73);
(151,79,1,72); (151,80,1,71); (151,81,1,70); (151,82,1,69);
(151,83,1,68); (151,84,1,67); (151,85,1,66); (151,86,1,65);
(151,87,1,64); (151,88,1,63); (151,89,1,62); (151,90,1,61);
(151,91,1,60); (151,92,1,59); (151,93,1,58); (151,94,1,57);
(151,95,1,56); (151,96,1,55); (151,97,1,54); (151,98,1,53);
(151,99,1,52); (151,100,1,51); (151,101,1,50); (151,102,1,49);
(151,103,1,48); (151,104,1,47); (151,105,1,46); (151,106,1,45);
(151,107,1,44); (151,108,1,43); (151,109,1,42); (151,110,1,41);
(151,111,1,40); (151,112,1,39); (151,113,1,38); (151,114,1,37);
(151,115,1,36); (151,116,1,35); (151,117,1,34); (151,118,1,33);
(151,119,1,32); (151,120,1,31); (151,121,1,30); (151,122,1,29);
(151,123,1,28); (151,124,1,27); (151,125,1,26); (151,126,1,25);
(151,127,1,24); (151,128,1,23); (151,129,1,22); (151,130,1,21);
(151,131,1,20); (151,132,1,19); (151,133,1,18); (151,134,1,17);
(151,135,1,16); (151,136,1,15); (151,137,1,14); (151,138,1,13);
(151,139,1,12); (151,140,1,11); (151,141,1,10); (151,142,1,9);
(151,143,1,8); (151,144,1,7); (151,145,1,6); (151,146,1,5);
(151,147,1,4); (151,148,1,3); (151,149,1,2); (151,150,1,1);
(181,61,2,59); (182,63,2,56); (183,65,2,53); (184,67,2,50);
(185,69,2,47); (186,71,2,44); (187,73,2,41); (188,75,2,38);
(189,77,2,35); (190,79,2,32); (191,81,2,29); (192,83,2,26);
(193,85,2,23); (194,87,2,20); (195,89,2,17); (196,91,2,14);
(197,93,2,11); (198,95,2,8); (199,97,2,5); (200,99,2,2);
(201,51,3,48); (202,52,3,46); (203,53,3,44); (204,54,3,42);
(205,55,3,40); (206,56,3,38); (207,57,3,36); (208,58,3,34);
(209,59,3,32); (210,60,3,30); (211,61,3,28); (212,62,3,26);
(213,63,3,24); (214,43,4,42); (214,64,3,22); (215,65,3,20);
(216,66,3,18); (217,45,4,37); (217,67,3,16); (218,68,3,14);
(219,69,3,12); (220,47,4,32); (220,70,3,10); (221,71,3,8);
(222,72,3,6); (223,49,4,27); (223,73,3,4); (224,3,74,2);
(224,74,3,2); (225,3,75,0); (225,38,5,35); (225,75,3,0);
(226,51,4,22); (227,39,5,32); (229,40,5,29); (229,53,4,17);
(231,41,5,26); (232,55,4,12); (233,42,5,23); (235,43,5,20);
(235,57,4,7); (236,35,6,26); (237,44,5,17); (238,4,59,2);
(238,30,7,28); (238,59,4,2); (239,45,5,14); (241,31,7,24);
(241,37,6,19); (241,46,5,11); (242,27,8,26); (243,47,5,8);
(244,32,7,20); (245,48,5,5); (246,39,6,12); (247,5,49,2);
(247,25,9,22); (247,33,7,16); (247,49,5,2); (249,29,8,17);
(250,23,10,20); (250,34,7,12); (251,6,41,5); (251,21,11,20);
(251,26,9,17); (251,41,6,5); (253,35,7,8); (255,27,9,12);
(256,7,36,4); (256,22,11,14); (256,31,8,8); (256,36,7,4);
(259,7,37,0); (259,9,28,7); (259,10,25,9); (259,13,19,12);
(259,19,13,12); (259,25,10,9); (259,28,9,7); (259,37,7,0);
(261,11,23,8); (261,12,21,9); (261,21,12,9); (261,23,11,8);
(263,9,29,2); (263,15,17,8); (263,17,15,8); (263,29,9,2);
(265,13,20,5); (265,20,13,5); (266,11,24,2); (266,24,11,2);
(268,14,19,2); (268,19,14,2); (270,15,18,0); (270,18,15,0);
total = 192
附:fortran 代码和运行结果
被除数是265。
这道题可以用一元一次方程的思路解答。首先设商是x,则被除数是20x+5。根据题目“已知被除数,除数,商,余数的和是303,已知除数是20,余数是5”可列出方程式(20x+5)+20+5+x=303,解方程得x=13,则商是13,代入20x+5可求出被除数是265。
扩展资料
一元一次方程指只含有一个未知数、未知数的最高次数为1且两边都为整式的等式。一元一次方程只有一个根。一元一次方程可以解决绝大多数的工程问题、行程问题、分配问题、盈亏问题、积分表问题、电话计费问题、数字问题。
解一元一次方程有五步,即去分母、去括号、移项、合并同类项、系数化为1,所有步骤都根据整式和等式的性质进行。
参考资料来源:百度百科-一元一次方程