{"id":50688080,"url":"https://github.com/pivari/lo-shu-enigma","last_synced_at":"2026-06-09T00:33:12.084Z","repository":{"id":355066039,"uuid":"1226628799","full_name":"pivari/lo-shu-enigma","owner":"pivari","description":"An interactive OER journey from the ancient Luo River legend to modern computational complexity. Accessible, multilingual, and PWA ready.","archived":false,"fork":false,"pushed_at":"2026-05-01T17:12:16.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T18:28:39.679Z","etag":null,"topics":["accessibility","education","history-of-science","interactive-learning","magic-square","mathematics","multilingual","oer","pivari-com","pwa"],"latest_commit_sha":null,"homepage":"https://pivari.github.io/lo-shu-enigma/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pivari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-01T16:34:24.000Z","updated_at":"2026-05-01T17:32:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pivari/lo-shu-enigma","commit_stats":null,"previous_names":["pivari/lo-shu-enigma"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pivari/lo-shu-enigma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivari%2Flo-shu-enigma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivari%2Flo-shu-enigma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivari%2Flo-shu-enigma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivari%2Flo-shu-enigma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pivari","download_url":"https://codeload.github.com/pivari/lo-shu-enigma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pivari%2Flo-shu-enigma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34086664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility","education","history-of-science","interactive-learning","magic-square","mathematics","multilingual","oer","pivari-com","pwa"],"created_at":"2026-06-09T00:33:07.444Z","updated_at":"2026-06-09T00:33:12.077Z","avatar_url":"https://github.com/pivari.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐢 Lo Shu Enigma: From Ancient Legend to Computational Abyss\n\n**Version 1.1 | Official OER \u0026 Cross-Platform Resource**[cite: 3]\n\nWelcome to the **Lo Shu Enigma**, an interactive journey that explores one of the oldest mathematical puzzles in human history. This project is designed for students and educators to demonstrate how a simple 3x3 grid connects ancient Chinese cosmology with modern **Combinatorial Analysis** and **Supercomputing**.\n\n---\n\n## 🌊 The Legend: The Script of the Luo River\nAncient legends tell of a time when the **Luo River (洛)** flooded, threatening the survival of the people[cite: 6]. While **Emperor Yu the Great** was working to tame the waters, a divine turtle emerged from the river[cite: 6]. On its shell was a unique pattern of dots: the **Luo Shu (洛書)**, or the \"Book of the Luo River\"[cite: 6].\n\nThis pattern was the first **Magic Square**—a grid where every row, column, and diagonal sums to the same number: **15**[cite: 4]. In Chinese culture, this is more than a game; it is the foundation of **Feng Shui (風水)** and represents the perfect, moving order of the universe[cite: 4].\n\n---\n\n## 🔢 The Mathematical Challenge\nWhile the legend is mystical, the underlying math is rigorous. The project challenges users to solve the 3x3 square while teaching key mathematical concepts[cite: 4]:\n\n### 1. The Magic Constant (M)\nWhy 15? In any magic square of order $n$, the sum is determined by a precise formula[cite: 4]:\n\n$$M = \\frac{n(n^2 + 1)}{2}$$\n\nFor our 3x3 square ($n=3$):\n$$M = \\frac{3(3^2 + 1)}{2} = 15$$\n\nInterestingly, **15** is also the number of days in each of the 24 solar terms of the Chinese solar calendar[cite: 4].\n\n### 2. Probability and Chaos\nHow hard is it to solve by \"guessing\"? \n*   There are **9!** (9 Factorial) ways to arrange the numbers 1–9[cite: 4].\n*   **9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1 = 362,880** total combinations[cite: 4].\n*   Only **8** of these are valid magic squares (the core solution plus its rotations and reflections)[cite: 4].\n*   **The odds of winning by pure luck?** Approximately **0.0022%**[cite: 4].\n\n---\n\n## 🖥️ The \"Computational Abyss\": 3x3 vs. 10x10\nThis project serves as a perfect introduction to **Computational Complexity**[cite: 4]. \n\n*   **The 3x3 Square:** A modern smartphone can solve this in a fraction of a millisecond. It is a \"toy problem\".\n*   **The 10x10 Square:** If we increase the size to a 10x10 grid, the number of combinations becomes **100!**[cite: 4].\n    *   This is a number with **158 digits** (more than the atoms in the observable universe)[cite: 4].\n    *   Even using a **Supercomputer**, it would take over **$10^{130}$ years** to check every possibility[cite: 4].\n    *   **Context:** The Universe is only **$1.38 \\times 10^{10}$ years** old[cite: 4]. \n\n---\n\n## 🛠️ New in Version 1.1: Features \u0026 OER\n*   **Expanded Multilingual Support:** English, Italian, and now **Simplified Chinese (zh)**—including full translation of historical legends and mathematical theory[cite: 1, 6].\n*   **Cache Busting Technology:** Implementation of versioned fetching (`?v=1.1`) for all JSON and HTML assets to ensure users always access the latest content[cite: 3].\n*   **HarmonyOS NEXT Compatibility:** Updated `manifest.json` with \"Atomic Ability\" specifications and maskable icons for seamless performance on the new Huawei ecosystem.\n*   **Text-to-Speech (TTS):** Legend narration for accessibility, now supporting native Chinese synthesis voices[cite: 3].\n*   **PWA Ready:** Works offline on tablets and phones—perfect for school labs.\n*   **Open Educational Resource (OER):** Designed to be freely shared, adapted, and cited in academic environments.\n\n## 👨‍💻 Author \u0026 Credits\nThis project is maintained by [pivari.com](https://pivari.com)[cite: 3]. \nIt was developed as an educational tool to bridge the gap between ancient history and modern computational logic.\n\n## ⚖️ License\nThis project is licensed under the **MIT License**[cite: 3]. \n\nYou are free to:\n*   **Share**: Copy and redistribute the material in any medium or format.\n*   **Adapt**: Remix, transform, and build upon the material for any purpose, even commercially.\n\n## 🎓 Academic Metadata\nTo ensure this resource is discoverable and citable, the following metadata files are included in the repository:\n*   `codemeta.json`: Technical metadata for software indexing.\n*   `CITATION.cff`: Standardized format for citing this educational tool.\n*   `manifest.json`: Web App metadata, optimized for HarmonyOS and Android.\n\n---\n\n**Master the numbers. Restore the balance. Explore the abyss.**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivari%2Flo-shu-enigma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpivari%2Flo-shu-enigma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpivari%2Flo-shu-enigma/lists"}