Enumerating Cryptarithms Using Deterministic Finite Automata
Yuki Nozaki, Diptarama Hendrian, Ryo Yoshinaka, Takashi Horiyama,, Ayumi Shinohara

TL;DR
This paper introduces a method to construct deterministic finite automata (DFA) for enumerating cryptarithms with unique solutions across different bases, enabling precise counting and cataloging of such puzzles.
Contribution
It presents a novel approach to build DFAs for cryptarithms, including explicit formulas for bases 2 and 3, facilitating enumeration and analysis of cryptarithm instances.
Findings
Constructed DFAs for bases up to 7
Derived explicit formulas for G_2(n) and G_3(n)
Enabled enumeration and counting of cryptarithm solutions
Abstract
A cryptarithm is a mathematical puzzle where given an arithmetic equation written with letters rather than numerals, a player must discover an assignment of numerals on letters that makes the equation hold true. In this paper, we propose a method to construct a DFA that accepts cryptarithms that admit (unique) solutions for each base. We implemented the method and constructed a DFA for bases . Those DFAs can be used as complete catalogues of cryptarithms,whose applications include enumeration of and counting the exact numbers of cryptarithm instances with digits that admit base- solutions. Moreover, explicit formulas for and are given.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Topicssemigroups and automata theory · Coding theory and cryptography · Cryptography and Data Security
