有一串数,1,9,9,8......从第5个数起,每个数都等于它前面四个数之和的个位数字,一直这样写下去。
3个回答
展开全部
伙计,这么多字不容易,记得给分。
前99个数字如下:
{1,9,9,8,7,3,7,5,2,7,1,5,5,8,9,7,9,3,8,7,7,5,7,6,5,3,1,5,4,3,3,5,5,6,9,5,5,5,4,9,3,1,7,0,1,9,7,7,4,7,5,3,9,4,1,7,1,3,2,3,9,7,1,0,7,5,3,5,0,3,1,9,3,6,9,7,5,7,8,7,7,9,1,4,1,5,1,1,8,5,5,9,7,6,7,9,9,1,6}
其中偶数20个,奇数79个.
{序号i,第i个数}
{1,1},
{2,9},
{3,9},
{4,8},
{5,7},
{6,3},
{7,7},
{8,5},
{9,2},
{10,7},
{11,1},
{12,5},
{13,5},
{14,8},
{15,9},
{16,7},
{17,9},
{18,3},
{19,8},
{20,7},
{21,7},
{22,5},
{23,7},
{24,6},
{25,5},
{26,3},
{27,1},
{28,5},
{29,4},
{30,3},
{31,3},
{32,5},
{33,5},
{34,6},
{35,9},
{36,5},
{37,5},
{38,5},
{39,4},
{40,9},
{41,3},
{42,1},
{43,7},
{44,0},
{45,1},
{46,9},
{47,7},
{48,7},
{49,4},
{50,7},
{51,5},
{52,3},
{53,9},
{54,4},
{55,1},
{56,7},
{57,1},
{58,3},
{59,2},
{60,3},
{61,9},
{62,7},
{63,1},
{64,0},
{65,7},
{66,5},
{67,3},
{68,5},
{69,0},
{70,3},
{71,1},
{72,9},
{73,3},
{74,6},
{75,9},
{76,7},
{77,5},
{78,7},
{79,8},
{80,7},
{81,7},
{82,9},
{83,1},
{84,4},
{85,1},
{86,5},
{87,1},
{88,1},
{89,8},
{90,5},
{91,5},
{92,9},
{93,7},
{94,6},
{95,7},
{96,9},
{97,9},
{98,1},
{99,6}
Mathematica 程序如下:
arr = {1, 9, 9, 8};
oush = 1;
jish = 3;
For[i = 5, i < 100, i++,
num = Mod[Sum[arr[[i - j]], {j, 1, 4}], 10];
If[Mod[num, 2] == 0, oush++, jish++];
arr =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2,5,1,9,7,2,9,7,5,3,4,9,1,7,1,8,7,3,9,7,6}
前99个数字如下:
{1,9,9,8,7,3,7,5,2,7,1,5,5,8,9,7,9,3,8,7,7,5,7,6,5,3,1,5,4,3,3,5,5,6,9,5,5,5,4,9,3,1,7,0,1,9,7,7,4,7,5,3,9,4,1,7,1,3,2,3,9,7,1,0,7,5,3,5,0,3,1,9,3,6,9,7,5,7,8,7,7,9,1,4,1,5,1,1,8,5,5,9,7,6,7,9,9,1,6}
其中偶数20个,奇数79个.
{序号i,第i个数}
{1,1},
{2,9},
{3,9},
{4,8},
{5,7},
{6,3},
{7,7},
{8,5},
{9,2},
{10,7},
{11,1},
{12,5},
{13,5},
{14,8},
{15,9},
{16,7},
{17,9},
{18,3},
{19,8},
{20,7},
{21,7},
{22,5},
{23,7},
{24,6},
{25,5},
{26,3},
{27,1},
{28,5},
{29,4},
{30,3},
{31,3},
{32,5},
{33,5},
{34,6},
{35,9},
{36,5},
{37,5},
{38,5},
{39,4},
{40,9},
{41,3},
{42,1},
{43,7},
{44,0},
{45,1},
{46,9},
{47,7},
{48,7},
{49,4},
{50,7},
{51,5},
{52,3},
{53,9},
{54,4},
{55,1},
{56,7},
{57,1},
{58,3},
{59,2},
{60,3},
{61,9},
{62,7},
{63,1},
{64,0},
{65,7},
{66,5},
{67,3},
{68,5},
{69,0},
{70,3},
{71,1},
{72,9},
{73,3},
{74,6},
{75,9},
{76,7},
{77,5},
{78,7},
{79,8},
{80,7},
{81,7},
{82,9},
{83,1},
{84,4},
{85,1},
{86,5},
{87,1},
{88,1},
{89,8},
{90,5},
{91,5},
{92,9},
{93,7},
{94,6},
{95,7},
{96,9},
{97,9},
{98,1},
{99,6}
Mathematica 程序如下:
arr = {1, 9, 9, 8};
oush = 1;
jish = 3;
For[i = 5, i < 100, i++,
num = Mod[Sum[arr[[i - j]], {j, 1, 4}], 10];
If[Mod[num, 2] == 0, oush++, jish++];
arr = Append[arr, num];
];
arr
"oush"
oush
"jish"
jish
arr2 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3,9,7,6}
追问
抱歉这个答案我已经知道啦,下次表抄袭喽
展开全部
这串数为1,9,9,8,7,3,7,5,2,7,1,5,,5,8,9,7,9,3,8..你会发现每隔4个数就有一个偶数,偶数的位置都在第4或者第9个,则共有(99+1)/5=20个偶数
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1,9,9,8,7,3,7,5,2,7,1,5,5,8,9,7,9,3,8,7,7,5,7,6,5,3,1,5,4,3,3,5,5,6,9,5,5,5,4,9,3,1,7,0,1,9,7,7,4,7,5,3,9,4,1,7,1,3,2,3,9,7,1,0,7,5,3,5,0,3,1,9,3,6,9,7,5,7,8,7,7,9,1,4,1,5,1,1,8,5,5,9,7,6,7,9,9,1,6偶数20个,奇数79个.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询