→ Ricestone: recursive definition of set 通常是用 Basic:1∈S 01/09 05:48
→ Ricestone: Recusive step:If x∈S,then x-2∈S and x+2∈S 01/09 05:49
→ Ricestone: 這種方式的定義 你說要考慮負數那就是這樣 01/09 05:50
→ Ricestone: 如果還是要用數列,那就多寫一項而已,可以考慮讓偶數 01/09 05:50
→ Ricestone: 項是正的,奇數項是負的 01/09 05:51
推 mi981027: 上面那題推R大正解 集合還用數列表示太莫名了 01/09 07:18
→ mi981027: 下面那題 你寫的是一樣的 但很不直觀 或是說這是整理後 01/09 07:18
→ mi981027: 的式子(我想不到該怎麼用這個遞迴式解釋題目QQ)不知道 01/09 07:18
→ mi981027: 交大老師想看到什麼答案 01/09 07:18
→ cutearia: 感謝r大 看懂了 01/09 08:25
→ cutearia: 下面那題想法是 最後一個bit1=偶數0+前一項偶數0 01/09 08:25
→ cutearia: bit0=奇數0+前一項奇數0 01/09 08:25
→ cutearia: 所以an=2an-1 01/09 08:25
推 mi981027: 但前一項奇數0的算法是2^{n-1} - a_n-1 01/09 09:16
→ mi981027: 所以這題直觀的遞迴寫法是a_n = 2^{n-1} - a_n-1 + a_n- 01/09 09:16
→ mi981027: 1 01/09 09:16
→ mi981027: 寫起來就是a_n = 2^{n-1} 但這很不遞迴XD 01/09 09:16
→ cutearia: 奇數0不是等於偶數0嗎 所以偶數0是an-1奇數0也是an-1吧 01/09 10:09