[離散] Euclidean algorithm
1.
Find all of the possible solutions of 250x+111y=7,
where both x and y are integers.
這題講義的答案是 x=7(4-111k), y=7(-9+250k), for k 屬於Z
---------------------------------------------------------
↖這個答案是不是錯的?
2.
There are____consecutive 0s at the end of the binary expansion of 70!.
解答:
floor(70/2)+floor(70/2^2)+........+floor(70/2^6)=67
----------------------------------------------------
為什麼可以這樣算? 完全看不懂..
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.237.64
推
01/16 23:06, , 1F
01/16 23:06, 1F
推
01/16 23:13, , 2F
01/16 23:13, 2F
推
01/16 23:30, , 3F
01/16 23:30, 3F
→
01/16 23:32, , 4F
01/16 23:32, 4F
→
01/16 23:45, , 5F
01/16 23:45, 5F
→
01/17 00:33, , 6F
01/17 00:33, 6F
→
01/17 00:33, , 7F
01/17 00:33, 7F
推
01/17 17:27, , 8F
01/17 17:27, 8F
→
01/17 17:27, , 9F
01/17 17:27, 9F
→
01/17 23:06, , 10F
01/17 23:06, 10F