# Pythagorean Paths

> Join the dots with one path of straight segments whose lengths are the ones listed.

Kind of puzzle: Lines

Web page: https://inkit.games/puzzles/pythagorean-paths

## Origin

Pythagorean Paths comes from Beast Academy's maths puzzle books for kids and measures each segment with Pythagoras, so one that goes 1 across and 2 down is √5 long.

## Credit

- Popularized by: Beast Academy (Art of Problem Solving)
- Source: [Beast Academy Puzzles 5](https://beastacademy.com/books/puzzles5)

## Rules

1. Join all the dots into one path of straight segments, each from a dot to a dot.
   - ✓ Right: Every dot
   - ✗ Wrong: A dot left out
2. The segments are the listed lengths, each used once, in any order. √5 means 1 square one way and 2 the other.
   - ✓ Right: 2 and √5
   - ✗ Wrong: √5 twice, no 2
3. The path never crosses itself.
   - ✓ Right: Around the edge
   - ✗ Wrong: Crosses
4. Some puzzles say how segments may run: like a chess queen (straight or diagonal) or a knight (one jump of 1 and 2).
   - ✓ Right: Queen: diagonal
   - ✗ Wrong: Queen: not √5

## Worked example: Geoboard

A 4×4 Pythagorean Paths puzzle, with exactly one solution.

The givens, as inkit's puzzle engine writes them (cells are [row, column] from 0 at the top left):

```json
[{"at":"cell","cell":[0,1],"kind":"peg"},{"at":"cell","cell":[0,3],"kind":"peg"},{"at":"cell","cell":[1,0],"kind":"peg"},{"at":"cell","cell":[1,3],"kind":"peg"},{"at":"cell","cell":[2,2],"kind":"peg"},{"at":"cell","cell":[2,3],"kind":"peg"},{"at":"aside","kind":"lengths","value":[1,4,5,8,10]}]
```

The solution is drawn on the web page: https://inkit.games/puzzles/pythagorean-paths

## Playing on inkit

Drag from dot to dot to draw a segment; drag back over it, or tap it, to take it away. The lengths cross themselves off as you use them.
