Expression Generation
Generate candidate expressions across permitted numerical terms and operator patterns, including addition, subtraction, multiplication, division, and exponentiation.
01 / SOFTWARE
A symbolic formula discovery engine built in Java.
Equation Matcher works backward from numerical sequences: it searches candidate expressions, identifies those that match the target values, tracks how their terms change across successive inputs, and uses those substitution patterns to reconstruct a symbolic formula in terms of n.
OVERVIEW
Rather than starting with a known formula and calculating its values, Equation Matcher approaches the problem in reverse. A target sequence becomes the evidence; the engine searches for numerical expressions that reproduce it and then looks for a consistent symbolic relationship behind those matches.
The result is not simply a list of expressions that happen to evaluate correctly. The program preserves the substitution path across inputs so that repeated numerical structure can be interpreted as a candidate formula in n.
HOW IT WORKS
Generate candidate expressions across permitted numerical terms and operator patterns, including addition, subtraction, multiplication, division, and exponentiation.
Evaluate generated expressions against the selected sequence and retain candidates whose values match the required inputs.
Compare surviving expressions across successive inputs and record which positions vary and which remain constant.
Use those repeated substitution patterns to infer a symbolic expression in terms of n and surface verified formula candidates.
EXAMPLE
For the Summandial sequence, the search identifies numerical expressions that continue to match as the input changes. The changing positions resolve to n, while the stable positions remain constants, producing the familiar Gaussian sum.
TECHNICAL NOTES
The engine systematically explores combinations of numerical terms and operators rather than relying on a preloaded catalog of formulas. Candidate expressions are evaluated left-to-right, filtered by the target sequence, and carried forward only when they continue to satisfy the verification range.
This separation between expression search and symbolic reconstruction is central to the project: numerical matches establish the path, while substitution behavior across inputs supplies the information needed to generalize that path into a formula.
NEXT