Data and analyses by Rudini Sampaio, Universidade Federal do CearĂ¡. Data licensed under CC BY 4.0; code under the MIT license.
| CF.txt.xz | All nimbers CF(1), …, CF(200,000,000): one value per line, compressed with xz (line n holds CF(n)). |
| README.md | Description of the data, the observed results and the computation. |
| stat_CF_values.csv | Statistics of the values: for each value, its count, frequency, first and last position, and whether it satisfies the support rule below. |
| gap_summary_CF.txt | Gaps between consecutive occurrences of the same value. |
| lag_spectrum_CF_K20000.csv | Lag spectrum: probability that CF(i+k) = CF(i), for 1 ≤ k ≤ 20000. |
Couples-are-Forever is a two-player impartial combinatorial game under normal play (the player who cannot move loses). A position of size n can be split into two smaller positions of sizes i and n−i, with 1 ≤ i ≤ n/2, except that positions of size 1 and 2 are terminal: a “couple” is forever and cannot be separated. The two parts are then played as a disjunctive sum.
By the Sprague–Grundy theorem, the game on a position of size n is equivalent to a Nim heap whose size is its nimber (Grundy value) CF(n). These nimbers satisfy
CF(1) = CF(2) = 0,
CF(n) = mex { CF(i) ⊕
CF(n−i) : 1 ≤ i ≤
⌊n/2⌋ } for n ≥ 3,
where ⊕ is the bitwise exclusive or and mex is the least non-negative integer that does not belong to the set. The first values are CF(1), CF(2), … = 0, 0, 1, 2, 0, 1, 2, 3, 1, 2, 3, 4, 0, … The data contain CF(n) for 1 ≤ n ≤ 200,000,000. The largest value in this range is 325.
popcount(v & 0x1EE) is odd. For example, v = 325 = 1010001012 has
1s in positions 2, 6 and 8 among those, three of them, so it is allowed; v = 1 has none, so it is not.
Before that point there are exceptions: 1,585 occurrences of 116 distinct values, the last one being
CF(20,628) = 277. After that, every one of the more than 199 million values up to
n = 200,000,000 obeys the rule.
The sequence was computed on the ParGO cluster of the Federal University of CearĂ¡, on an instance with an AMD Ryzen 7 5700G processor (16 threads) and 55 GB of RAM, in about 15 days. See the read me file for details.