Chào mừng bạn đã đến với Cộng đồng LuyenDich.com

Để chung tay phát triển Luyendich.com

Các bạn hay chia sẻ và giới thiệu đến bạn bè trên các Forum, Facebook hay qua các kênh khác nhe

Share this question

458 questions

1,175 answers

258 comments

1,915 users


Dịch Anh Việt

Dịch Việt Anh

Viết Luận

Hỏi đáp chung

Hỏi đáp ngữ pháp

Kiến Thức Tiếng Anh

Chia sẻ kinh nghiệm

Học Từ Vựng

Tài liệu Tiếng Anh


NHẬN BÀI QUA EMAIL

Nhập địa chỉ Email:


Sau khi đăng ký, hãy mở Email để kích hoạt



Delivered by FeedBurner

Cùng luyện dịch nào các bạn

0 votes

            You are soon to graduate from the mathemagi- cian school of Hagworts, and you're quite content with yourself; all the hard work and elbowing hasfinally paid off. Being successful at most of your endeavors you would normally end up a herald of sound reasoning and good mathemagics. You,however, are different; not only have you spent your young years secretly hacking away at com- puters, writing code to do your assigned routine homework for you, but of late you have started planning how to cram all your mathemagical skills into a computer to completely eliminate the need for mathemagicians! To show the others just how great a visionary you are, you plan to make your graduation ceremony something they will never forget.

             

To do this you need to break into the safe of your arch-nemesis, Hairy Peter. The safe is locked by a code mechanism: All natural numbers from 1 to N need to be typed in in the correct order, set by Hairy Peter. Fortunately you know that Hairy, being a good mathemagician, has a certain weakness; he has a rather unhealthy obsession with the number K. (For instance he always has to introduce himself K times whenever he meets new people, making him quite annoying to be around.) Thus you are certain that his code, when viewed as a permutation of the  N first naturals, has order exactly K. (i.e.) is the smallest positive number such that if you K times replace x 2 f1; : : : ;Ng with the position of x in Hairy's code, you end up with the x you started with, for all x. Thus e.g. the order of the permutation corresponding to the code 2 3 1 is 3 as 1 > 3 >2>1 and 3 > 2 > > 3.) While this does not help you directly, it greatly reduces the number of code inputs you may have to try before you nd the correct one. "How many?" is the question you are pondering right now. You must know the exact number, lest you risk preparing too little time for cracking the safe.

Now you also have a certain mathemagical weakness { arguably a bit worse than Hairy Peter's: Because of your dark scheme to program mathemagical computers, you insist there are no numbers greater than what can be represented by a signed 32-bit integer, namely the prime

P = 2 mũ 31- 1. Of course there must be nothing your computers cannot count. In fact you hate this upper limit P so intensely that you have decided to make a new mathemagics where P equals 0. Ha, take that! (Well, you are quite aware that you are really just counting modulo

P, but it will have to suce until you find better ways of punishing P.) In fact this turns out to be quite an advantage for you! For instance, if the number of code permutations you have to check turns out to be 2 mũ 31, there will actually be just one permutation for you to check, as 2

31 mod P = 1. (Or at least you think so...) That's just magnificent!

asked Aug 18, 2012 in Dịch Anh-Việt by trung (420 points)
edited Aug 18, 2012 by admin
Nếu thấy hay thì vui lòng click Like nhé:   

Please log in or register to answer this question.

Related questions

0 votes
2 answers
237 views asked Apr 25, 2012 in Dịch Anh-Việt by minhphuong (200 points)
0 votes
2 answers
83 views asked Sep 14, 2012 in Dịch Anh-Việt by Nguyen Phuong day (580 points)
+3 votes
7 answers
Luyện dịch | Dịch Anh Việt| Dịch Việt Anh | Bí quyết dịch | Tài liệu dịch| Học Dịch | | Tài liệu dịch| Hoc Tieng Anh |Hoc Tieng Anh truc tuyen |