KOJP

Mathdoku (Calcudoku) Online Game

Fill every row and column with 1 to N once while each bold-outlined cage produces its target with the printed operation. 4×4 to 7×7, a fresh board with one answer every time

Easy 4×4 (+× only) · Normal 5×5 · Hard 6×6 · Expert 7×7

A label such as "12×" in the top left corner of a cage means the numbers in that cage multiply to 12. A single-cell cage simply holds the printed number. Every board is generated fresh and checked for a single answer before you see it. Unfinished boards and best times are saved in this browser.

Controls

Tap a cell: select
Number buttons or keyboard digits: enter (press the same digit again to erase)
Memo: pencil in candidates
Hint: fills one cell that can be deduced · Check: marks broken cages and duplicate cells in red
Arrows move · N memo · H hint · Z undo · C check · Backspace erase

What is Mathdoku?

Mathdoku, also called Calcudoku, is a Latin square puzzle: put the numbers 1 to N once in every row and column of an N×N grid, and make every bold-outlined group of cells (a cage) produce its printed target with the printed operation (+ − × ÷). The rules are the same as the well known trademarked puzzle from Japan; Mathdoku and Calcudoku are the generic names.

Unlike ordinary sudoku there are almost no given numbers. Instead each cage carries a small label such as "7+", "2÷", "12×" or "1−": the numbers in a plus or times cage add or multiply to the target, and in a two-cell minus or divide cage the larger number minus or divided by the smaller one equals the target. A single-cell cage holds exactly the printed number, which gives you a first foothold.

What are the exact rules?

There are only three. No repeated number in a row, no repeated number in a column, and every cage must produce its target. Inside a cage a number may appear twice as long as the two cells do not share a row or a column.

RuleMeaning
RowEach row holds 1 to N once. On a 5×5 board that is 1, 2, 3, 4, 5
ColumnEach column also holds 1 to N once
Plus +The cage numbers add up to the target. A two-cell "7+" is 3·4, 2·5 or 1·6
Times ×The cage numbers multiply to the target. A three-cell "12×" is 1·3·4 or 2·2·3 (1·2·6 from 6×6 up)
Minus −Two cells only. The larger number minus the smaller one equals the target, in either order
Divide ÷Two cells only. The larger number divided by the smaller one equals the target. "2÷" is 1·2, 2·4 or 3·6
Single cellA cage with a number and no operation holds that number
FinishAll cells filled and nothing breaks the three rules

Which cage combinations should I know?

The fastest route is to fill the cages that have only one possible combination first. The table lists common labels and the sets of numbers that fit them on a 5×5 board; larger boards add combinations with 6 and 7.

LabelCellsPossible setsTip
3+21·2Fixed at once. Rows and columns decide which cell is the 1
4+21·32·2 is impossible because the cells share a row or column
9+24·5The largest two-cell sum on 5×5
6+31·2·3Fixed at once when the three cells sit in one line
2÷21·2, 2·43·6 joins from 6×6 up
3÷21·32·6 joins from 6×6 up
4÷ · 5÷21·4 · 1·5One of the cells must be 1
1−21·2, 2·3, 3·4, 4·5Two neighbouring numbers. Match against what the row and column still need
4−21·5Fixed at once on 5×5
2×21·2Fixed at once
10×22·51·10 does not exist, so it is fixed
20×24·5Fixed at once
12×31·3·4, 2·2·32·2·3 only when the two 2s are in different rows and columns
60×33·4·5Fixed at once on 5×5
40×32·4·51·5·8 does not exist, so it is fixed
  1. Start with single cells and one-combination cages. Labels such as "3+", "2×", "20×" and "60×" have a fixed set of numbers; pencil them in and the row and column eliminations begin.
  2. Factorise big products. "105×" can only be 3·5·7, and a four-cell "48×" has just a few options such as 2·3·4·2 or 1·3·4·4. A prime factor of 7 pins the 7 to that cage.
  3. Every row has the same sum. A 5×5 row adds up to 15. Add the targets of the plus cages that sit entirely inside one row, subtract from 15, and you have the sum of the remaining cells.
  4. Division needs a small number. "4÷" and "5÷" force a 1 into one of their cells, so the 1 can be struck from the rest of that row and column.
  5. Stuck? Press Check. Cages whose arithmetic is wrong and cells repeated in a row or column turn red. Hint fills one cell that can be deduced from the current board.

How do the sizes differ?

4×4 uses only plus and times and is a warm up, 5×5 is the classic size, and 6×6 and 7×7 call for factorising and pencil marks. Bigger boards have more cages and group up to four cells in one cage.

SizeOperationsCagesTarget time
Easy 4×4+ × and single cells6 to 8Under a minute
Normal 5×5+ − × ÷9 to 11About 3 minutes
Hard 6×6+ − × ÷13 to 16About 7 minutes
Expert 7×7+ − × ÷17 to 2112 minutes or more

Every board can be finished by pure deduction. Boards that would force a guess are never shown.

How are the boards made?

The game shuffles a random Latin square, groups neighbouring cells into cages of one to four cells, then picks an operation for each cage. A two-cell cage becomes a division when the numbers divide evenly, otherwise one of minus, plus or times; cages of three or more cells become plus or times. A solver then counts the answers by propagation and branching, and the board is accepted only when exactly one exists.

If there is more than one answer, a loose plus cage is switched to times or divide and the count is repeated; if that still fails, the board is partitioned again. All of this finishes within a second, so a new board appears without waiting. The share link carries the board number, so a friend who opens it gets the very same board to race on.

What is the daily puzzle?

The daily puzzle is a 5×5 board that changes every day and is the same for everyone on that day. It rolls over at midnight Korean time, and finishing it is recorded on your attendance streak.

Best times are stored separately for each size. If you leave in the middle of a board, the Continue button brings you back to the same spot.

Controls

Records and unfinished boards are kept only in this browser and never sent to a server. Clearing browser data clears them too.

Frequently asked questions

Is Mathdoku free to play?

Yes. You can play it on this page for free with no sign up, on a computer, phone or tablet.

What does a cage label like "12×" mean?

The numbers inside that bold outline multiply to 12. "7+" means they add up to 7, "2÷" means the larger divided by the smaller is 2, and "1−" means the larger minus the smaller is 1. A single-cell cage with a number and no operation simply holds that number.

Can the same number appear twice in one cage?

Yes, as long as the two cells are not in the same row or column. An L-shaped three-cell "12×" can be 2·2·3 because the two 2s sit in different rows and columns.

Is this the same as the famous trademarked puzzle?

The rules are the same. That name is a trademark, so it is not used here; the same puzzle is called Mathdoku, Calcudoku or arithmetic sudoku. This game generates a brand new board every time.

Is there really only one answer?

Yes. Every board is checked by a solver that counts the answers, and only boards with exactly one are shown. Boards that can be finished by pure deduction are preferred.

Do hints count against my record?

The number of hints used is shown on the result screen and the share card. Best times are compared by time only.

What happens if I leave in the middle?

The board, your entries, memos and time are saved in this browser. When you come back, a Continue button appears on the start screen.

Is the daily puzzle the same for everyone?

Yes. The board number comes from the date, so everyone gets the same 5×5 board on the same day. It changes at midnight Korean time.