|
Download math/math-0155.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 912 Bytes
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/math/math-0155.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@034ba678829a1c436b19d43dd3adab33b5170a80/math/math-0155.jsonl
-
curl -L -o math-0155.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/math/math-0155.jsonl
912 Bytes
| {"type": "session", "harness": "opencode", "id": "math-0155", "name": "Combinatorics Fundamentals"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert mathematician and programmer."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain combinatorics for programming"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "P(n,k) = n!/(n-k)! permutations. C(n,k) = n!/(k!(n-k)!) combinations.\nPascal: C(n,k) = C(n-1,k-1)+C(n-1,k). Mod prime via Lucas theorem.\n\nStars and bars: distribute n identical into k bins: C(n+k-1, k-1).\n\nInclusion-exclusion: |A union B union C| = sum singles - sum pairs + triple.\n\nDerangements: D(n) = n! * sum((-1)^k/k!) for k=0..n. Approx n!/e.\n\nCatalan: C(2n,n)/(n+1). Balanced parens, BSTs, triangulations, Dyck paths.\n\nStirling S(n,k): partitions into k non-empty subsets. S(n,k) = k*S(n-1,k) + S(n-1,k-1)."}} | |