Vāstu - The Piṇḍa Is a Diophantine Equation
The six-fold test runs forwards: take a building's dimensions, and read off the verdicts. The Vāsturatnākara asks the question backwards, and the answer is the most mathematically substantial thing in the whole corpus.
The backwards question is: given the verdicts I want, what floor area produces them?
The worked example
The text wants a particular āya and a nakṣatra matched to the owner's. It derives the area like this:
(15 − 1) × 152 = 2128
( 7 − 1) × 81 = 486
+ 17
------
2631 mod 216 → 39
39 + (3 × 216) = 687 the working piṇḍa
Recomputed and confirmed, every step. But the arithmetic is not what matters here. What matters is the commentary attached to it.
The text supplies a proof
The Vāsturatnākara does not simply give the recipe. It gives an upapatti — a derivation — by the kuṭṭaka or "pulveriser" method, with the standard bīja-sūtras, arriving at a general relation:
y = 216·gh + 81·ā − 64·n
where y is the piṇḍa, ā the āya, n the nakṣatra, and gh a free integer.
This is a linear Diophantine equation, and kuṭṭaka is the classical Indian algorithm for solving one. In modern terms it is the extended Euclidean algorithm applied to a linear congruence — the same procedure, arrived at independently, and in India considerably earlier than in Europe.
The free integer gh generates the entire family of solutions. For the example above, with āya 7 and nakṣatra 15, the family runs 39, 255, 471, 687, 903 — every value congruent to 39 modulo 216. The text's step of adding three cepakas to the remainder is simply choosing a member of that family large enough to be a habitable floor area. Any of them satisfies the verdicts; only some of them are a house.
A note for anyone implementing this: the "3" in the worked example is a count of cepakas, not the value of gh. The general relation reaches 687 at gh = 5. The two parametrisations describe the same solution family and are easily conflated.
Three things follow
It is a constraint-satisfaction system, and the tradition knew it
The presence of a formal derivation settles an argument that is usually conducted on vibes. The practitioners were not applying a received taboo they could not account for. They understood the rule as a theorem, and they wrote down the proof. Whatever one makes of what āya 7 means, the machinery producing it was mathematics and was known to be.
The gṛha-sāraṇī is a lookup table
The text closes with a master table: the twenty-seven nakṣatras crossed with the four auspicious āyas — 1, 3, 5 and 7 — tabulating for every combination the whole downstream chain. The derived piṇḍa, the cepaka, the working piṇḍa, the width, the length in hasta and aṅgula and yava, and every quantity that follows.
That is a solved instance of the congruence system, cached. It is precisely what a modern engineer does when a computation is expensive and the input domain is small and known: solve it once for every case, print the answers, and never solve it again.
One hundred and eight combinations is a small domain. Solving each by hand with the pulveriser is expensive. The table is the right engineering decision, and it was made for the right reason.
The listed regularities are theorems about the modulus
The author gives a set of invariants so the table can be internalised rather than merely consulted. Among them: the nakṣatra number modulo 8 gives the vyaya; the piṇḍa modulo 9 gives the parvata-chāyā; and the āyu is never less than 8 and is always a multiple of 8.
That last one is checkable in a line, and it holds: the āyu operator is ×8 modulo 120, and since 8 divides 120, every possible output is a multiple of 8 — with the zero-as-modulus convention putting the floor at 8 rather than 0.
These are not observations about buildings. They are provable consequences of the moduli chosen, and the text presents them as such. A tradition that lists the invariants of its own function is doing number theory, whatever else it is also doing.
One figure that does not resolve
The same worked example derives the house length by dividing the piṇḍa by the width: 687 ÷ 25.
The notes print this in one place as 27⅖ hasta and in another as 27⅓. The true value is 687/25 = 27.48, which is 27 hasta and 11.52 aṅgula. Neither printed fraction matches the arithmetic, and they do not match each other.
Possible causes: a different definition of vistāra that excludes wall thickness; a fraction expressed in a sub-unit that is not named; or a print error in one or both places. Unresolved — do not use either figure until it is settled.
Why this is worth knowing
The āyādi is often dismissed as arbitrary, and defended as ancient. Both positions are avoidable once you look at what the text actually does with it.
The arithmetic is exact, the inverse problem is solved properly with a named general method, the solution family is understood as a family, and the results are cached in a table whose regularities are stated as provable facts. That is a piece of applied number theory with a building at the end of it.
What none of that establishes is the interpretive layer. That āya 7 is Gaja and that Gaja means happiness is a categorical assignment from the tradition. It is not derived from the arithmetic and no computation validates it. The arithmetic is exact; the meaning attached to its output is doctrine. Keeping those two apart is the whole discipline of reading this material well.
The derivation, the solution family and the āyu invariant were recomputed with exact integer arithmetic. The two unresolved items are recorded as unresolved rather than reconciled.
Measure and Number in Vāstu is a five-part series in the OccultSanctum library. Our daily tools — live panchang, muhurat and chart work — are in Vedic Samay, free on the App Store and on Google Play.