{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"给定一个**n**面的骰子,你需要找出掷这个骰子至少一次看到所有面的期望次数。假设这个骰子是公平的,也就是说当你掷骰子时,每个面出现的概率是相等的。\n\n例如,对于一个公平的两面硬币,结果是3。因为当你第一次掷硬币时,你肯定会看到一个新的面。如果你再掷一次硬币,得到相反面的概率是0.5,得到相同面的概率也是0.5。所以,结果是\n\n1 + (1 + 0.5 * (1 + 0.5 * ...))\n\n\u003d 2 + 0.5 + 0.5\u003csup\u003e2\u003c/sup\u003e + 0.5\u003csup\u003e3\u003c/sup\u003e + ...\n\n\u003d 2 + 1 \u003d 3"}},{"title":"输入","value":{"format":"MD","content":"输入以一个整数 **T (\u0026#8804; 100)** 开始,表示测试用例的数量。\n\n每个测试用例以包含一个整数 **n (1 \u0026#8804; n \u0026#8804; 10\u003csup\u003e5\u003c/sup\u003e)** 的行开始。"}},{"title":"输出","value":{"format":"MD","content":"对于每个测试用例,打印出测试用例编号和掷骰子至少一次看到所有面的期望次数。误差小于 **10\u003csup\u003e-6\u003c/sup\u003e** 的情况将被忽略。"}},{"title":"样例","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5\n1\n2\n3\n6\n100\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: 1\nCase 2: 3\nCase 3: 5.5\nCase 4: 14.7\nCase 5: 518.7377517640\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}