Cody

Solution 2032737

Submitted on 23 Nov 2019 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

2   Pass
x = 2; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0

3   Pass
x = 3; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0

4   Pass
x = 7; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

5   Pass
x = 23; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

6   Pass
x = 63; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

7   Pass
x = 159; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

8   Pass
x = 383; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

9   Pass
x = 895; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

10   Pass
x = 1000; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0

11   Pass
x = 2000; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0

12   Pass
x = 2047; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

13   Pass
x = 3000; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0

14   Pass
x = 3001; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0

15   Pass
x = 4607; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

16   Pass
x = 10239; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

17   Pass
x = 22527; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

18   Pass
x = 7516192767; tf_correct = true; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 1

19   Pass
x = 7516192766; tf_correct = false; assert(isequal(woodall(x),tf_correct))

a = 1 a = 1 7 a = 1 7 23 a = 1 7 23 63 a = 1 7 23 63 159 a = 1 7 23 63 159 383 a = 1 7 23 63 159 383 895 a = 1 7 23 63 159 383 895 2047 a = 1 7 23 63 159 383 895 2047 4607 a = 1 7 23 63 159 383 895 2047 4607 10239 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 a = 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Column 16 1048575 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 17 1048575 2228223 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 18 1048575 2228223 4718591 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 19 1048575 2228223 4718591 9961471 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 20 1048575 2228223 4718591 9961471 20971519 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 21 1048575 2228223 4718591 9961471 20971519 44040191 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 22 1048575 2228223 4718591 9961471 20971519 44040191 92274687 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 23 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 24 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 a = Columns 1 through 15 1 7 23 63 159 383 895 2047 4607 10239 22527 49151 106495 229375 491519 Columns 16 through 25 1048575 2228223 4718591 9961471 20971519 44040191 92274687 192937983 402653183 838860799 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 26 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 27 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 a = 1.0e+09 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 0.0010 0.0022 0.0047 Columns 19 through 28 0.0100 0.0210 0.0440 0.0923 0.1929 0.4027 0.8389 1.7448 3.6239 7.5162 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 29 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 a = 1.0e+10 * Columns 1 through 18 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0001 0.0002 0.0005 Columns 19 through 30 0.0010 0.0021 0.0044 0.0092 0.0193 0.0403 0.0839 0.1745 0.3624 0.7516 1.5569 3.2212 tf = logical 0