ProjectEuler 361 Subsequence of Thue-Morse sequence - 拼圖
By Erin
at 2011-12-04T12:32
at 2011-12-04T12:32
Table of Contents
361. Subsequence of Thue - Morse sequence
http://projecteuler.net/problem=361
Thue - Morse sequence {Tn} 是一個二進位制的數列,他符合以下條件:
T0 = 0
T2n = Tn
T2n+1 = 1 - Tn
我們可以知道 {Tn} 的前幾項是這樣的:
01101001100101101001011001101001....
定義 {An} 是一個整數數列,而他的每一項用二進位制表示都有出現在 {Tn} 之中
舉例來說,十進位制的 18 用二進位制表示就是 10010
10010 出現在 T8 到 T12 之間,所以 18 是 {An} 的其中一項
14 用二進位制表示為 1110,而 1110 從未出現在 {Tn} 中,故 14 不是 {An} 其中一項
An 的前幾項我們也知道了,如下:
n 0 1 2 3 4 5 6 7 8 9 10 11 12 ...
An 0 1 2 3 4 5 6 9 10 11 12 13 18 ...
我們還能證明出 A100 = 3251 而 A1000 = 80852364498
18
請計算出 Σ A10^k 的末九位
k=1
--
http://projecteuler.net/problem=361
Thue - Morse sequence {Tn} 是一個二進位制的數列,他符合以下條件:
T0 = 0
T2n = Tn
T2n+1 = 1 - Tn
我們可以知道 {Tn} 的前幾項是這樣的:
01101001100101101001011001101001....
定義 {An} 是一個整數數列,而他的每一項用二進位制表示都有出現在 {Tn} 之中
舉例來說,十進位制的 18 用二進位制表示就是 10010
10010 出現在 T8 到 T12 之間,所以 18 是 {An} 的其中一項
14 用二進位制表示為 1110,而 1110 從未出現在 {Tn} 中,故 14 不是 {An} 其中一項
An 的前幾項我們也知道了,如下:
n 0 1 2 3 4 5 6 7 8 9 10 11 12 ...
An 0 1 2 3 4 5 6 9 10 11 12 13 18 ...
我們還能證明出 A100 = 3251 而 A1000 = 80852364498
18
請計算出 Σ A10^k 的末九位
k=1
--
Tags:
拼圖
All Comments
By Vanessa
at 2011-12-06T23:03
at 2011-12-06T23:03
By Agnes
at 2011-12-08T21:44
at 2011-12-08T21:44
By Bethany
at 2011-12-09T13:05
at 2011-12-09T13:05
By Christine
at 2011-12-13T05:27
at 2011-12-13T05:27
By Sarah
at 2011-12-14T13:52
at 2011-12-14T13:52
By Wallis
at 2011-12-16T04:35
at 2011-12-16T04:35
By Andy
at 2011-12-19T22:37
at 2011-12-19T22:37
By Connor
at 2011-12-21T10:51
at 2011-12-21T10:51
By Eartha
at 2011-12-23T01:02
at 2011-12-23T01:02
By James
at 2011-12-24T15:45
at 2011-12-24T15:45
By Charlie
at 2011-12-25T05:53
at 2011-12-25T05:53
By Edward Lewis
at 2011-12-26T19:10
at 2011-12-26T19:10
By Regina
at 2011-12-31T00:16
at 2011-12-31T00:16
By Harry
at 2012-01-03T11:23
at 2012-01-03T11:23
By Caroline
at 2012-01-04T20:42
at 2012-01-04T20:42
By Hazel
at 2012-01-07T03:41
at 2012-01-07T03:41
By Sandy
at 2012-01-08T04:56
at 2012-01-08T04:56
By Cara
at 2012-01-09T11:51
at 2012-01-09T11:51
By Kristin
at 2012-01-10T12:37
at 2012-01-10T12:37
By Jacky
at 2012-01-11T00:27
at 2012-01-11T00:27
By Ethan
at 2012-01-11T11:09
at 2012-01-11T11:09
By Doris
at 2012-01-11T16:52
at 2012-01-11T16:52
By Jake
at 2012-01-13T12:33
at 2012-01-13T12:33
By Eartha
at 2012-01-14T06:03
at 2012-01-14T06:03
Related Posts
新款轉折拼湊卡
By Leila
at 2011-12-03T09:43
at 2011-12-03T09:43
Puzzleup 2011 (19) Eight Cubes
By Candice
at 2011-12-01T01:04
at 2011-12-01T01:04
草帽海賊團
By Dinah
at 2011-11-30T16:19
at 2011-11-30T16:19
請問Pintoo的品質
By Blanche
at 2011-11-30T01:35
at 2011-11-30T01:35
草帽海賊團
By Megan
at 2011-11-29T23:25
at 2011-11-29T23:25