Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 [1, 1, 1]
- 2 [3, 5, 6]
- 3 [6, 7, 10]
- 4 [11, 29, 36]
- 5 [14, 47, 56]
- 6 [47, 59, 100]
- 7 [59, 110, 162]
- 8 [23, 241, 256]
- 9 [31, 239, 261]
- 10 [187, 239, 416]
- 11 [447, 620, 1056]
- 12 [239, 1853, 2080]
- 13 [1439, 1775, 3201]
- 14 [1663, 2735, 4384]
- allocatemem(2^28)
- {
- M(v, P,Q) =
- m = v; P = vector(v+1,i,binomial(v,i-1));
- while(1,
- m++; P = concat(0,P) + concat(P,0); Q = P % prod(i=0,v-1,m-i);
- for(a=1,m2, if(Q[a+1]==0, return([a,m-a,m-v])))
- )
- }
- for(v=1,14,print(v,M(v)))
- 3, 5, 6, 2
- 6, 7, 10, 3
- 11, 29, 36, 4
- 14, 47, 56, 5
- 47, 59, 100, 6
- 59, 110, 162, 7
- 23, 241, 256, 8
- 31, 239, 261, 9
- 187, 239, 416, 10
- 447, 620, 1056, 11
- 239, 1853, 2080, 12
- 1439, 1775, 3201, 13
- 1663, 2735, 4384, 14
- 14335, 18458, 32778, 15
- 9209, 23615, 32808, 16
- 13106, 52447, 65536, 17
- 26207, 39347, 65536, 18
- 34719, 227444, 262144, 19
- 109237, 152927, 262144, 20
- 59039, 465398, 524416, 21
- 230111, 294839, 524928, 22
- 496123, 3698204, 4194304, 23
- 1007871, 3186457, 4194304, 24
- 983546, 7405087, 8388608, 25
- 1029947, 7358687, 8388608, 26
- 527036, 33027423, 33554432, 27
- 2479487, 31074973, 33554432, 28
- 2, 3, 4, 1
- 2, 7, 8, 1
- 5, 14, 16, 3
- 9, 26, 32, 3
- 19, 49, 64, 4
- 17, 116, 128, 5
- 23, 241, 256, 8
- 53, 467, 512, 8
- 314, 719, 1024, 9
- 482, 1574, 2048, 8
- 1943, 2164, 4096, 11
- 1979, 6227, 8192, 14
- 3317, 13081, 16384, 14
- 6548, 26234, 32768, 14
- 26207, 39347, 65536, 18
- 56375, 74354, 131072, 17
- 109237, 152927, 262144, 20
- 58559, 465749, 524288, 20
- 117350, 931247, 1048576, 21
- 511613, 1585561, 2097152, 22
- 1007871, 3186457, 4194304, 24
- 1029947, 7358687, 8388608, 26
- 839773, 15937469, 16777216, 26
- 2479487, 31074973, 33554432, 28
- 28499711, 38609183, 67108864, 30
- 13640318, 120577439, 134217728, 29
- 26335607, 242099879, 268435456, 30
- 149450463, 387420479, 536870912, 30
- 42571871, 1031169982, 1073741824, 30
- 210421817, 1937061863, 2147483648, 32
- 808182959, 3486784371, 4294967296, 34
- 66684221, 8523250405, 8589934592, 34
- 57373109, 17122496111, 17179869184, 36
- 1071383543, 33288354863, 34359738368, 38
- 194490575, 68524986199, 68719476736, 38
- 722568911, 136716384599, 137438953472, 38
- 2908726651, 27196918033, 274877906944, 40
- 5820696123, 543935117807, 549755813888, 42
- 275025321599, 824486306219, 1099511627776, 42 (?)
- c_curr = c_head + offsets[i];
- while(c_curr <= c_tail) {
- *c_curr = 0;
- c_curr+=this_prime;
- }
- offsets[i] = (c_curr - c_head) - (BUFFER_SIZE);
- if (offsets[i] == this_prime)
- offsets[i] = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement