# Mean

> Find the mean of a set of numbers — add them up, then divide by how many there are.

A free printable math worksheet from Pencil Ready. Set it up and print it at https://pencilready.com/worksheets/mean/.

## Know before you start

- [Column addition](https://pencilready.com/worksheets/add.md) with carrying, for three or four numbers at a time.
- [Long division](https://pencilready.com/worksheets/long-divide.md) by a single-digit divisor.
- Reading a decimal to one tenth, for the longest sets.

## With mastery, the student can

- Work in order — total everything before dividing anything.
- Divide by how many values there are, not by a number from the set.
- Check the mean sits in the middle of the data, which catches most slips.

## Generate the PDF

`GET https://pencilready.com/api/worksheets/mean` returns the worksheet as a PDF. Every option is a query parameter; leave one out to get its default. The same `seed` with the same options always gives the same worksheet.

### Examples

- Default settings, new problems on every request: https://pencilready.com/api/worksheets/mean
- Seed 42, with an answer key: https://pencilready.com/api/worksheets/mean?seed=42&include_answers=true

### Options for this worksheet

| Parameter | Values | Description |
|---|---|---|
| `count` | string, e.g. `3-4` | Values per data set (range). A range varies the count, and so the divisor, per problem. Default `3-4`. |
| `digits` | string, e.g. `1-2` | Digit count (range) of each value: `1-2` gives 1-99, `3` gives 100-999. Default `1-2`. |
| `scaffold` | `true`, `false` | Print a pre-filled column-addition stack under the data. Changes the scaffolding, not the layout. Default false. |
| `decimals` | `true`, `false` | Give every value one decimal place (e.g. `12.5`). Decimal or wide sets get an open work area instead of the addition stack. Default false. |

### Options for every worksheet

| Parameter | Values | Description |
|---|---|---|
| `format` | `pdf`, `png`, `svg` | Output format. Default `pdf`. pdf: printable, any page count. png / svg: single page only; multi-page worksheets and include_answers return 400. |
| `seed` | integer | Seed for reproducible output. Omit for a random worksheet. |
| `problems` | integer | Number of problems. Default depends on the worksheet type. |
| `paper` | `a4`, `us-letter` | Paper size. Default `a4`; `letter` is accepted as an alias for `us-letter`. a4 or us-letter (alias: letter). Problem count and layout are identical on both. |
| `locale` | `us`, `no` | Printed language and number notation. Default `us`. us: English copy, decimal point, × and ÷. no: Norwegian Bokmål copy, decimal comma, · and :. |
| `solve_first` | `true`, `false` | Render the first problem as a worked example. |
| `include_answers` | `true`, `false` | Append an answer-key page showing just the final answers (PDF only). |
| `student_name` | string | Pre-fill the student name on the header in a handwriting font. |
| `division` | `bracket`, `equation` | Division layout for long-divide, simple-divide and mean. Default follows `locale`: `bracket` for `us`, `equation` for `no`. bracket: `4)852`, quotient on top; simple division as a vertical stack. equation: one line, `852 : 4 = 213`, long-division working written under the dividend. |

Full API reference (OpenAPI): https://pencilready.com/openapi.json

## Languages

Worksheets print in each language below. Choose one with the `locale` query parameter, which sets the printed instructions and number notation. Each language also has its own version of the worksheet page.

- English (`en`): `locale=us`, page https://pencilready.com/worksheets/mean/
- Norsk (`nb`): `locale=no`, page https://pencilready.com/no/worksheets/mean/
