• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:カードトリック問題の意味について)

カードトリック問題の意味について

このQ&Aのポイント
  • カードトリック問題の意味について
  • 21枚のカードを七行に並べ、観客に選んだ列を言わせるトリックについての意味について解説します。
  • カードトリック問題は、21枚のカードを七行に並べ、観客が選んだ列を言い当てるトリックです。

質問者が選んだベストアンサー

  • ベストアンサー
noname#101087
noname#101087
回答No.1

Good xxxxx ! よくできたトリックのようです。手際が良くないとバレそうですけど。 P*Q 枚の札を P 列(columns)、Q 行(rows)に配列した場合(前記例では、P=3 and Q=7)を解析してます。 ------------------------------------------------------------- P, Q が奇数の場合、P=2p+1 および Q=2q+1 (p>=1 and q>=1)とする。(前記例では、p=1 and q=3) 重ねた札のテッペンから順番に 1, 2, 3, ... と番号付けすると、真ん中の札の上下には (P*Q-1)/2 枚ずつあり、(前記例では10枚ずつ) 真ん中の札の番号(C)は C = (P*Q+1)/2 = p*Q+q+1 = q*P+p+1 である。(前記例では C=11) トリック・プレイ第 n ラウンドの直後、選ばれた札が重ね札のテッペンから X(n) 番目だったとしよう。 次の(n+1)ラウンドでそれが第 r 行に現れるとすれば、その r は X(n)/P 以上の整数で最小の値のものである。 m>=Y の最小整数を <Y> と書けば、選ばれた札が真ん中の列になるよう札を重ねなおしたあと、選ばれた札の番号 X(n+1) は次のような関係を満たす。  X(n+1) = p*Q+<X(n)/P> この回帰関係は非線形で、初期値 X(0) も不明である。 だが、この情報は問題の完全解を得るのに充分なもので、このトリックの動きは、関数の繰り返し適用が不動点へ引きつけて収束することのヒントになる。 問題の対称性から、選ばれた札が重ね札の上半分にあるだけに注目すれば良い。 そこで 1=<X(0)=<C と想定してみる。上記の帰納法により、すべての n について X(n)=<C である。そうすると、  X(n+1) = p*Q+<X(n)/P> = <p*Q+<C/P> = p*Q+<(q*P+p+1)/P> = p*Q+q+1=C 同様にして、Xn=C のとき X(n+1) = C である。 また X(1)>p*Q の場合は、  pO<X(1)<X(2)<....<X(N-1)<X(N)=C=X(N+1)=X(N+2)=....(不動点 !) となる整数 N があることを示せる。 (前記例では、第3ラウンドで札を行列に配列したとき、選ばれた札は必ず第4行にあり、観客にどの列にあるかを指示させたとたんに、どの札かがわかる。もう一度札を重ねて行列に配りなおせば、選ばれた札はど真ん中へ。もっと繰り返すと、いつもど真ん中なのでネタばれしそう) ------------------------------------------------------------- バナッハ(Banach)の不動点定理 (縮小写像は唯一つの不動点を持つ) もどきの説明です。 もっとも、「札師」はそんな定理なんぞ知らなくてもやれてます。

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • カードトリック問題について

    こんにちは。カードについて書いてあることはわかるのですが、内容がよくわかりません。アドバイスお願いします>< The card trick Consider the following card trick. The trickster has 21 cards in a pack; the audience chooses one card (leaving it in the pack) and the pack is shuffled. The trickster deals out the cards face up in a row of three, then in a second row of three, and so on, the cards finally making an array of seven rows of three cards each(or three columns of seven cards each). The audience states which column the chosen card is in, the trickster collects up the columns to reform the pack ensuring that the chosen column is placed between the other two. This process (which we call a round) is repeated twice more. The trickster can now tell the audience which card was chosen, for it will be the card in the centre of the pack with ten cards before it and ten cards after it. Of course, the trickster can add the usual embellishments to deflect the audience's attention from the crucial issues. Why does this trick work? What will happen if we take a different size pack? We shall analyse the trick for a pack of any size, explain why it works, and show how many rounds are needed. Unexpectedly perhaps(but only at first), we shall see that if the trick were to be carried out with an array of, for example, 999×999 cards, the chosen card would find its way to the centre of the pack in just two rounds. The convergence of the process We consider a pack with PQ cards which will be arranged in an array of P columns, each of Q cards or, equivalently, Q rows, each of P cards. The case described above is with P=3 and Q=7. We shall only analyse the case when P and Q are odd and greater than 1 (leaving the other cases to the interested reader), and we write P=2p+1 and Q=2q+1, where p>=1 and q>=1. We are interested in the central card in the pack; this has exactly 1/2(P×Q-1) cards above and below it and, labelling the cards 1,2,3,... from the top of the pack, the central card is labelled C, where C=1/2(P×Q+1)=p×Q+q+1=q×P+p+1. Suppose now that the chosen card lies in the Xn th position in the pack after n rounds have been played. During the play in the next round the first Xn cards will be spread out over the first few rows, and the chosen card will occur in the r th row, where r is the smallest integer greater than or equal to Xn/P. We write <Y> for the smallest integer m satisfying m>=Y. It follows that, after reforming the pack by ensuring that the column containing the chosen card is the central column, the position Xn+1 of the chosen card will satisfy the recurrence relation Xn+1=pQ+<Xn/P>. This is a recurrence relation, but it is non-linear, and we do not know the initial value X0 of the chosen card in the pack; all we know is that 1=<X0=<PQ. Nevertheless, this information is sufficient to give us a complete solution of our problem, and we shall see that the dynamics of the trick is reminiscent of the convergence of iterates of a function towards an attracting fixed point of the function. We begin by noting that there is a symmetry in the process, so that we may confine our attention to those cases where the chosen card lies in the top half of the pack; thus we may assume that 1=<X0=<C. An induction argument now shows that, for all n, Xn=<C. For suppose that Xn=<C; then Xn+1=pQ+<Xn/P>=<pQ+<C/P> =pQ+<(qP+p+1)/P> =pQ+q+1=C This argument also shows that if Xn=C, then Xn+1=C. Observe next that X1>pQ. We shall now show that there is some integer N with pO<X1<X2<....<Xn-1<Xn=C=Xn+1=Xn+2=.... ・・・(1)

  • カードトリック問題についての文章について

    こんにちは。何回も質問してすみません>< カードトリックについて、次のような内容であることが今までの質問でわかりました。 「21 枚のカードを、絵が見えるように上にして、三枚ずつ七行に並べていく。七行・三列の行列にする。そして、観客に一枚を選ばせ、三列のうちのどの列なのか言わせる。カードは手渡さない。指示された列 が真ん中になるよう各列のカードを集めたあと、また繰り返す。これを3ラウンド繰り返せば、観客の選んだ札を言い当てられる。さらに、一般化して、P*Q 枚の札を P 列(columns)、Q 行(rows)に配列した場合(上の例では、P=3 and Q=7)を考える。P, Q が奇数の場合、P=2p+1 および Q=2q+1 (p>=1 and q>=1)とする。(上の例では、p=1 and q=3)重ねたカードの上から順番に 1, 2, 3, ... と番号付けすると、真ん中のカードの上下には (P*Q-1)/2 枚ずつあり(上の例では10枚ずつ)真ん中のカードの番号(C)は C = (P*Q+1)/2 = p*Q+q+1 = q*P+p+1 である。(上の例では C=11)このトリックを第 n ラウンドした後、選ばれたカードが重ねたカードの上から X(n) 番目だったとする。次の(n+1)ラウンドでそれが第 r 行に現れるとすれば、その r は X(n)/P 以上の整数で最小の値のものである。m>=Y の最小整数を <Y> と書けば、選ばれたカードが真ん中の列になるようカードを重ねなおしたあと、選ばれた札の番号 X(n+1) は次のような関係を満たす。  X(n+1) = p*Q+<X(n)/P> 問題の対称性から、選ばれたカードが重ねたカードの上半分にあるだけに注目すればよい。そこで 1=<X(0)=<C と仮定する。上記の帰納法により、すべての n について X(n)=<C である。そうすると、  X(n+1) = p*Q+<X(n)/P> = <p*Q+<C/P> = p*Q+<(q*P+p+1)/P> = p*Q+q+1=C 同様にして、Xn=C のとき X(n+1) = C である。また X(1)>p*Q の場合は、  pO<X(1)<X(2)<....<X(N-1)<X(N)=C=X(N+1)=X(N+2)=....(不動点 !) となる整数 N があることを示せる。(上の例では、第3ラウンドでカードを行列に配列したとき、選ばれたカードは必ず第4行にあり、観客にどの列にあるかを指示させたら、どのカードかがわかる。もう一度カードを重ねて行列に配りなおせば、選ばれたカードはど真ん中にくる。さらに繰り返すと、いつもど真ん中にくる。)」という内容でした。この続きに、下のような文章があったのですが、どのようにつながっているのかが、わかりません(泣) わからない文章は、 [The number of rounds] In the case of the trick as first described, P=3,Q=7 and C=11. In this case, X1>=8, X2>=7+<8/3>=10, 11>=X3=7+<10/3>=11. Thus (as stated in the first section) the chosen card is in the central position after three rounds.We turn now to discuss the number of rounds needed for the pack of general size. First, as X1>pQ we deduce that C>=X2>=pQ+<(pQ+1)/P>. Now P>=Q implies that pQ>=qP which, in turn, implies that C>=X2>=pQ+<(qP+1)/P>=pQ+q+1=C. Thus if P>=Q (and, in particular, if P=Q) then the chosen card is already in the central position after the second round regardless of the size of P and Q. A little thought should now show that, in retrospect, this is rather obviously so. The situation when Q>P is more complicated, and we shall show that the chosen card is always in the cantral position by the n th round provided that n>=1+logQ/logP.・・・(2) We shall also given an example to show that in some cases this lower bound is indeed the smallest n for which the chosen card is centrally placed, so the inequality (2) cannot be improved upon. If P>=Q, then (2) simply says that Xn=C as soon as n=2, a fact we have already observed above. Note also that (2) shows that, for a fixed P, the number of rounds needed tends to +∞ as Q does. We begin with the example to show that (2) cannot be improved upon. Example Consider the trick with P=3, and Q=3^N, so that C=2/1(3^(N+1)+1), and let the selected card be the first in the psck. Then X1=pQ+<1/3>=3^N+1 X2=3^N+<3/1(3^N+1)>=3^N+3^(N-1)+1,                    ・                    ・ です。 質問1:いきなりlogがでできているところで、何でか? 質問2:∞の文章の意味 特にこの2つが疑問です>< アドバイスお願いします><

  • カードの問題です><

    こんにちは。前に質問させてもらった内容なのですが、疑問点が出来たため、また質問させてください>< [The card trick] Consider the following card trick.The trickster has 21 cards in a pack; the audience chooses one card(leaving it in the pack) and the pack is shuffled. The trickster deals out the cards face up in a row of three, then in a second row of three, and so on, the cards finally making an array of seven rows of three cards each(or three columns of seven cards each).the The audience states which column the chosen card is in, the trickster collects up the columns to reform the pack ensuring that the chosen column is placed between the other two. Theis process(which we call a round) is repeated twice more. The trickster can now tell the audience which card was chosen, for it will be the card in the centre of the pack with ten cards before it and ten cards after it. Of course, the trickster can add the usual embellishments to deflect the audience's attention from the crucial issues. Why does this trick work? What will happen if we take a different size pack? We shall analyse the trick for a pack of any size, explain why it works, and show how many rounds are needed. Unexpectedly perhaps(but only at first), we shall see that if the trick were to be carried out with an array of, for example, 999×999 cards, the chosen card would find its way to the centre of the pack in just two rounds. 上の文章の内容で、3行7列の行列を考えることはわかったのですが、第3ラウンドで札を行列に配列したとき、選ばれた札は必ず第4行に あり、観客にどの列にあるかを指示させたとたんに、どの札かがわかり、もう一度札を重ねて行列に配りなおせば、選ばれた札はど真ん 中へ。という内容だと思うのですが、ここで、もう一度札を重ねて行列に配りなおすとき、どこから配っていくのか??がわかりません (泣)アドバイスお願いします!!

  • 漸化式の考え方?

    以下の文章について ---------------------------------------------------------------- 1+logQ/logP・・・(2) It remains to verify (2) for the general pack (with P and Q odd). We know that Xn+1>=pQ+Xn/P, X0>=1, And it follows (by induction) that if we define the sequence Vn by Vn+1=pQ+Vn/P, V0=1, Then Xn>=Vn for all n. --------------------------------------------------------------- この文章で、 Xn+1>=pQ+Xn/P, X0>=1, から Vn+1=pQ+Vn/P, V0=1, を定義しているのですが、どのように置き換えたのかがわかりません>< 正直、英語の内容が理解できていないので、アドバイスお願いします><よろしくお願いします。

  • 意味を教えてください

    My daughter was born on Christmas Eve. From the time she was 5 and able to recognize that her birthday cards were getting scrambled in with the other holiday cards, we started celebrating on June 24 -- her half-birthday. getting scrambled inの意味を教えてください。よろしくお願いします

  • 最大化問題の証明について

    効用最大化問題において、以下の定理の証明が記述されています。 Theorem 1.4: Sufficiency of Consumer's First-Order Conditions Suppose that u(x) is continuous and quasiconcave on Rn+, and that (P,y)>>0. If u is differentiable at x*, and (x*,λ*)>>0 solves ∂L/∂xn=∂u(X*)/∂xn-λ*pn=0, then x* solves the consumer's maximisation problem at price P and income y. Proof : We shall employ the fact that you are asked to prove in Exercise1.28: For all x, x1>=0, because u is quasiconcave, ∇u(x)(x1-x)>=0 whenever u(x1)>=u(x) and u is differentiable at x. ここで、問題なのが、Exercise1.28の証明を援用していることで、このExercise1.28がわかりません。 Exercise1.28 In the proof of Theorem 1.4 we use the fact that if u(・) is quasiconcave and differentiable at x and u(y)>=u(x), then ∇u(x)(y-x)>=0. Prove this fact in the following two steps. (a)Prove that if u(x)>=u(y) the quasiconcave of u(・) and its differentiable at x imply that the derivative of u((1-t)x+ty) with respect to t must be non-negative at t=0. (b)Compute the derivative of u((1-t)x+ty) with respect to t evaluated at t=0 and show that it is ∇u(x)(y-x). 書いている内容はわかりますが 1. u((1-t)x+ty)のtについての導関数が分からない 2. t=0のときの、u((1-t)x+ty)のtについての導関数が分からない 3. t=0のとき、∇u(x)(y-x)となるのががわからない どなたか、Exercise1.28の(a)(b)を詳しく教えていただけないでしょうか? u((1-t)x+ty)のtについての導関数だけでも教えていただけないしょうか?

  • 同じ意味にするにはどうしたらいいですか?

    同じ意味にするにはどうしたらいいですか 和訳も教えてください He is content though he is verry poor. =He is content in spite of his (     )(     ). It is clear that the view of the country is great different from that of Japan. =Cleary there is a great (   ) in views (    ) the country and Japan. よろしくお願いします

  • ”bec” なんの意味ですか?

    次の2つの文章は、君の国民(日本人)は、長寿であるが、ぼくの国は、長寿ではない・・・という内容のメールの中に出てくる文です。(難しそうな話題ですが、けして硬い内容のメールではありません)  1 I have that so many old people now in Japan bec. of long life…… 2 Here in my country it is not easy to have long lofe bec. of our living and eating style . また、次は文字化けの話の中で出てきた文章です。 3 It is only on the yahoo mail problem bec. It is download it into Japanese language and the result is like that Q1 上の3文章の中にたびたび出てくる 「bec」は、どういう意味でしょうか? Q2 また、3文章は、どう訳せばいいのでしょうか? Q3 さらに、次の文書の中の 「 w/c 」は、トイレの事ですか? So w/c part of Japan are you belong ? Q4 この文章全体は、どのような意味でしょうか。

  • 和訳をよろしくお願いします。

    We should note that the scaled value of r_p is independent of the protoplanet mass. Supposing that ρ=3gcm^-3, we have r_p=0.005 and 0.001 at the Earth and Jupiter orbits, respectively. At the Neptune orbit, ρis certainly smaller than that at the Earth orbit; if we assume ρ=1gcm^-3, r_p is 0.0002 at this orbit.

  • 意味を教えてください

    The basic point is that you've got to be before you can do, and do before you can have. You've got to be the right kind of person and do the right thing in order to have balanced success in all areas of life. Once we've reestablished the fact that good foundational qualities are the successful beginning of all car. この文のThe basic point is that you've got to be before you can do, and do before you can have. はどんな意味になるのでしょうか?教えてください、よろしくお願いします。