初二数学常用的勾股数有哪些
展开全部
(3.4.5)(6.8.10)(5.12.13)(9.40.41)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
rg = 200
for a in range(1,rg):
for b in range(a,rg):
c = (a ** 2 + b ** 2) ** 0.5
if int(c) == c:
c = int(c)
print(f'found one:({a},{b},{c})')
修改rg来改动范围
给你a<100的:
found one:(3,4,5)
found one:(5,12,13)
found one:(6,8,10)
found one:(7,24,25)
found one:(8,15,17)
found one:(9,12,15)
found one:(9,40,41)
found one:(10,24,26)
found one:(11,60,61)
found one:(12,16,20)
found one:(12,35,37)
found one:(13,84,85)
found one:(14,48,50)
found one:(15,20,25)
found one:(15,36,39)
found one:(16,30,34)
found one:(16,63,65)
found one:(18,24,30)
found one:(18,80,82)
found one:(20,21,29)
found one:(20,48,52)
found one:(20,99,101)
found one:(21,28,35)
found one:(21,72,75)
found one:(24,32,40)
found one:(24,45,51)
found one:(24,70,74)
found one:(25,60,65)
found one:(27,36,45)
found one:(28,45,53)
found one:(28,96,100)
found one:(30,40,50)
found one:(30,72,78)
found one:(32,60,68)
found one:(33,44,55)
found one:(33,56,65)
found one:(35,84,91)
found one:(36,48,60)
found one:(36,77,85)
found one:(39,52,65)
found one:(39,80,89)
found one:(40,42,58)
found one:(40,75,85)
found one:(40,96,104)
found one:(42,56,70)
found one:(45,60,75)
found one:(48,55,73)
found one:(48,64,80)
found one:(48,90,102)
found one:(51,68,85)
found one:(54,72,90)
found one:(56,90,106)
found one:(57,76,95)
found one:(60,63,87)
found one:(60,80,100)
found one:(60,91,109)
found one:(63,84,105)
found one:(65,72,97)
found one:(66,88,110)
found one:(69,92,115)
found one:(72,96,120)
found one:(80,84,116)
for a in range(1,rg):
for b in range(a,rg):
c = (a ** 2 + b ** 2) ** 0.5
if int(c) == c:
c = int(c)
print(f'found one:({a},{b},{c})')
修改rg来改动范围
给你a<100的:
found one:(3,4,5)
found one:(5,12,13)
found one:(6,8,10)
found one:(7,24,25)
found one:(8,15,17)
found one:(9,12,15)
found one:(9,40,41)
found one:(10,24,26)
found one:(11,60,61)
found one:(12,16,20)
found one:(12,35,37)
found one:(13,84,85)
found one:(14,48,50)
found one:(15,20,25)
found one:(15,36,39)
found one:(16,30,34)
found one:(16,63,65)
found one:(18,24,30)
found one:(18,80,82)
found one:(20,21,29)
found one:(20,48,52)
found one:(20,99,101)
found one:(21,28,35)
found one:(21,72,75)
found one:(24,32,40)
found one:(24,45,51)
found one:(24,70,74)
found one:(25,60,65)
found one:(27,36,45)
found one:(28,45,53)
found one:(28,96,100)
found one:(30,40,50)
found one:(30,72,78)
found one:(32,60,68)
found one:(33,44,55)
found one:(33,56,65)
found one:(35,84,91)
found one:(36,48,60)
found one:(36,77,85)
found one:(39,52,65)
found one:(39,80,89)
found one:(40,42,58)
found one:(40,75,85)
found one:(40,96,104)
found one:(42,56,70)
found one:(45,60,75)
found one:(48,55,73)
found one:(48,64,80)
found one:(48,90,102)
found one:(51,68,85)
found one:(54,72,90)
found one:(56,90,106)
found one:(57,76,95)
found one:(60,63,87)
found one:(60,80,100)
found one:(60,91,109)
found one:(63,84,105)
found one:(65,72,97)
found one:(66,88,110)
found one:(69,92,115)
found one:(72,96,120)
found one:(80,84,116)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1、(3、4、5) (6、8、10)(5、12、13)
2、(8、15、17) (7、24、25)(9、40、41)
3、(10、24、26)(11、60、61)
4、(12、35、37)(48、55、73)
5、(12、16、20)(13、84、85)
6、(20、21、29)(20、99、101)
7、(60、91、109)(15、112、113)
2、(8、15、17) (7、24、25)(9、40、41)
3、(10、24、26)(11、60、61)
4、(12、35、37)(48、55、73)
5、(12、16、20)(13、84、85)
6、(20、21、29)(20、99、101)
7、(60、91、109)(15、112、113)
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |