Open Rules

Product Cage

Multiplying the cage digits gives the stated product. The distinct parameter forbids repeats.

Parameters

Parameter Meaning Default
cells The marked cells, for example r1c1-r1c2-r2c2. Required.
product The total obtained by multiplying the digits. Required.
distinct Whether repeated digits are forbidden. Required.

Maths

Class: with aggregates.

The shared predicates define the notation and every named predicate.

product_D(cells)=product ∧ (distinct → distinct_D(cells))

The cage digits multiply to product. If distinct, the digits also differ.

Example

---
format: open-rules
title: Product Cage example
setter: Example
source: ""
case: ""
library: https://rules.sudoku-sleuth.com/
status: read
---

```rules
sudoku 9x9
product-cage r1c1-r1c2 product 6 distinct false
```

Satisfies the rule: r1c1=2, r1c2=3. 2 times 3 equals 6.

Breaks the rule: r1c1=2, r1c2=4. 2 times 4 equals 8 instead of 6.