The loop density of biased random hitomezashi patterns
A hitomezashi pattern is drawn by labelling every grid line 0 or 1 and stitching alternate unit segments of each line, starting according to its label. Defant and Kravitz proved that with fair coin labels the expected number of closed loops in an m × n pattern is ((π2−9)/12 + o(1))mn. We compute the loop density c(p) in closed form when every label is independently 0 with probability p, for every p in (0,1). The proof reads off the labels a loop forces from Pete's pair of Dyck paths, turning the density into a sum over weighted Dyck paths of fixed height; the two-step transfer matrix has a double eigenvalue, the continuants become linear in the index times powers of pq, and the sum reduces to Euler's partial fraction expansions of cot and csc2. We also prove that the fair coin uniquely minimises the density, and give a closed form for different biases on the two families of lines with an explicit truncation bound. The label lemmas, continuant identities and the series evaluation are formally verified in Lean 4; the remaining steps have paper proofs with exact and high-precision checks. This record is identical to the folder biased-hitomezashi-loops at tag biased-hitomezashi-loops-v1 of https://github.com/jvvk/mathematics.
Authors
- Vamshi Jandhyala (ORCID: https://orcid.org/0009-0006-6708-5805)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-22
- DOI
- https://doi.org/10.5281/zenodo.24448299
- Primary Topic
- Advanced Combinatorial Mathematics
- Type
- preprint