ProjectEuler 469 Empty chairs - 拼圖

Table of Contents


469. Empty chairs

http://projecteuler.net/problem=469

房間裡有個圓桌,周圍有 N 張椅子。

騎士們依序進來並隨機坐在其中一個椅子上。

為了使得手肘有伸展的空間,騎士們會在彼此之間留下至少一個空椅子。

當已經沒有任何人可以入座後,檢視此時空椅子佔的比例 C。

令 E(N) 表示 C 的期望值。

給定 E(4) = 1/2, E(6) = 5/9,求 E(10^18)。將答案四捨五入至小數第十四位。

--
'You've sort of made up for it tonight,' said Harry. 'Getting the
sword. Finishing the Horcrux. Saving my life.'
'That makes me sound a lot cooler then I was,' Ron mumbled.
'Stuff like that always sounds cooler then it really was,' said
Harry. 'I've been trying to tell you that for years.'
-- Harry Potter and the Deathly Hollows, P.308

--

All Comments

Heather avatarHeather2014-04-28
解完才發現這題目(某種意味上)很簡單...(眼神死)
Zora avatarZora2014-04-30
PE偶爾會有這種感覺像是陷阱題的題目...
Elizabeth avatarElizabeth2014-05-04
當初有點納悶為什麼沒給E(10^6)之類的當參考,不過也沒放在心上
現在回過頭來看就會覺得如果當初有參透就好了XD
Poppy avatarPoppy2014-05-06
未算先猜有遞迴顯式解