File size: 8,813 Bytes
9e4e9cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
---
license: cc-by-nc-sa-4.0
language:
- en
pretty_name: "Math Reasoning: Arithmetic Sequences"
task_categories:
- question-answering
- text-generation
tags:
- synthetic
- sonicium-quantum-lab
- education
- nlp
- text-generation
- question-answering
- mathematics
- math
- reasoning
- chain-of-thought
- llm-fine-tuning
configs:
- config_name: default
  data_files:
  - split: train
    path: "math_arithmetic_sequence.jsonl.gz"
---

# Math Reasoning: Arithmetic Sequences

> **Hugging Face mirror** of the Kaggle dataset [soniciumquantumlab/math-arithmetic-sequence](https://www.kaggle.com/datasets/soniciumquantumlab/math-arithmetic-sequence), created by **Hussain Billah** ([ORCID 0009-0009-5686-619X](https://orcid.org/0009-0009-5686-619X)) and published by **Sonicium Quantum Lab Ltd.**
> Data files here are gzip-compressed copies of the original files (`math_arithmetic_sequence.csv.gz`, `math_arithmetic_sequence.jsonl.gz`) and load directly with the `datasets` library:
>
> ```python
> from datasets import load_dataset
> ds = load_dataset("SoniciumQuantumLab/math-arithmetic-sequence")
> ```


77K step-by-step next-term arithmetic sequence problems with answers for LLM SFT.

Created by **Hussain Billah** ([ORCID 0009-0009-5686-619X](https://orcid.org/0009-0009-5686-619X)) · Published by **Sonicium Quantum Lab Ltd.** · Series DOI: [10.5281/zenodo.24355105](https://doi.org/10.5281/zenodo.24355105) · Series: **Sonicium Math Reasoning** · Generator `2.1.0` · License **CC BY-NC-SA 4.0**

> **Custom datasets & commercial licensing:** Need a larger volume, a new domain, a custom schema or file format, or a commercial / enterprise license? Sonicium Quantum Lab Ltd. builds custom datasets on request.
>
> Email: **research@sonicium.ltd** · **collaboration@sonicium.ltd** · Website: **https://soniciumquantumlab.com**

---

## 1. Overview

This dataset contains **76,947 synthetic next-term arithmetic sequence problems**, each with a **step-by-step chain-of-thought solution** and a **final answer**, formatted for training and evaluating language models on mathematical reasoning.

Every record is a ready-to-use supervised fine-tuning (SFT) example: a system prompt (math tutor), the question, the worked solution and the final answer, plus metadata for difficulty, topic, split and reproducibility. Answers are computed programmatically by the generator, and every row carries `verified = true`.

The dataset is one topic of the **Sonicium Math Reasoning** series (49 topics from arithmetic to statistics, about 77K records each), so you can train on one skill or combine several topics into a broader math curriculum.

## 2. Highlights

| Item | Value |
|---|---|
| Records | 76,947 |
| Topic | Arithmetic Sequences (`sequences_series`) |
| Difficulty | easy (all records) |
| Splits (train / validation / test) | 69,291 / 3,870 / 3,786 |
| Reasoning steps per record | 2 |
| Tokens per record (approx.) | 51–60 (mean 55.5) |
| Files | `math_arithmetic_sequence.csv` (32.3 MB, 17 columns) · `math_arithmetic_sequence.jsonl` (53.1 MB, same records) |
| Language | English |
| Generator version | `2.1.0` |

## 3. Example record

| Field | Value |
|---|---|
| `question` | What is the next number in the sequence: 12, 27, 42, 57, 72, 87, 102, 117, 132, 147, ...? |
| `chain_of_thought` | Common difference = 15. Next term = 147 + 15 = 162. |
| `final_answer` | 162 |
| `difficulty` / `topic_tag` | easy / sequences_series |
| `num_steps` / `token_estimate` | 2 / 60 |

## 4. Schema (math_arithmetic_sequence.csv)

| Column | Type | Description |
|---|---|---|
| `id` | string | Unique record ID: {category}_{8-digit index}. |
| `category` | string | Generator category; one value per dataset (math_arithmetic_sequence). |
| `topic_tag` | string | Broad topic group used across the series (here: sequences_series). |
| `task_type` | string | Task label; always math_reasoning. |
| `difficulty` | string | Difficulty label assigned by the generator (here: easy). |
| `system_prompt` | string | System prompt for the assistant (math-tutor instruction). |
| `question` | string | The math problem in natural language (user turn). |
| `chain_of_thought` | string | Worked, step-by-step solution that leads to the final answer. |
| `final_answer` | integer | Final answer (number, fraction, expression or value with units). |
| `num_steps` | integer | Number of reasoning steps in the solution, as counted by the generator. |
| `language` | string | Language code of the record (en). |
| `dataset_version` | string | Generator / schema version (2.1.0). |
| `split` | string | Suggested split: train (~90%), validation (~5%) or test (~5%). |
| `verified` | boolean | True when the generator answer check passed (true for every row). |
| `token_estimate` | integer | Approximate token length of the full record. |
| `created_at` | datetime | Generation timestamp (ISO 8601). |
| `seed` | string | Deterministic generation seed: {date}:{category}:{index}. |

## 5. Quick start

```python
import pandas as pd

df = pd.read_csv("/kaggle/input/math-arithmetic-sequence/math_arithmetic_sequence.csv")
print(df.shape, df["split"].value_counts().to_dict())

# Convert one row into chat messages for supervised fine-tuning (SFT)
def to_messages(r):
    return [
        {"role": "system", "content": r.system_prompt},
        {"role": "user", "content": r.question},
        {"role": "assistant", "content": f"{r.chain_of_thought}\n\nFinal answer: {r.final_answer}"},
    ]

train = df[df.split == "train"]
print(to_messages(train.iloc[0]))
```

The same records are available as JSON Lines (`math_arithmetic_sequence.jsonl`) for streaming pipelines:

```python
import json
with open("/kaggle/input/math-arithmetic-sequence/math_arithmetic_sequence.jsonl") as f:
    first = json.loads(next(f))
```

## 6. Suggested uses

- Supervised fine-tuning of small and large language models for **step-by-step math reasoning**
- Teaching models a consistent **solution format** (worked steps, then a clearly stated final answer)
- Building **evaluation sets** with exact final answers (use the `test` split)
- Curriculum learning: mix topics and difficulty levels from the Sonicium Math Reasoning series
- Tutoring and education apps that need worked examples for arithmetic sequences

## 7. Generation and quality notes

- **Synthetic and template-based.** Problems are instantiated from parameterized templates with random values, so the wording is consistent within the dataset. Combine several topics of the series, or paraphrase questions, if you need more linguistic variety.
- **Exact answers.** The generator computes each answer programmatically; numeric answers are rounded as stated in the question or solution.
- **Splits.** The `split` column gives a ready-made train / validation / test partition (about 90 / 5 / 5 %).
- **Reproducible.** Each record stores its generator `seed`; IDs follow `{category}_{8-digit index}`.
- **No personal data.** Names that appear in word problems are generic and fictional.

## 8. More from Sonicium Quantum Lab Ltd.

Browse the full **Sonicium Math Reasoning** series (49 topics) and the **Sonicium Function-Calling** series (50 service domains) at https://www.kaggle.com/soniciumquantumlab/datasets

## 9. License

Released under **Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)** — https://creativecommons.org/licenses/by-nc-sa/4.0/

Free for research, education and other non-commercial use with attribution. For **commercial licensing**, contact Sonicium Quantum Lab Ltd. (see below).

## 10. Citation

```bibtex
@misc{sonicium_math_arithmetic_sequence_2026,
  title        = {Math Reasoning: Arithmetic Sequences},
  author       = {Billah, Hussain and {Sonicium Quantum Lab Ltd.}},
  year         = {2026},
  publisher    = {Kaggle},
  howpublished = {\url{https://www.kaggle.com/datasets/soniciumquantumlab/math-arithmetic-sequence}}
}
```

## 11. Contact & Custom Data Requests

For **custom datasets** (larger scale, new domains, custom schema or format) or a **commercial license**, email us with your use case, the volume you need and your preferred format.

**Sonicium Quantum Lab Ltd.**

- Primary contact: **Nazmul Basher**, Head of Marketing & Communications
- Chairman and Chief Scientist: **Hussain Billah**
- Email: research@sonicium.ltd · collaboration@sonicium.ltd
- Website: https://soniciumquantumlab.com
- Bangladesh office: 5th Floor, Opolok, 225 Senpara Parbata Lane, Mirpur-10, Dhaka-1216, Bangladesh
- US office: 1270 3rd St, Brooklyn, New York 11219, USA

## Files

- `math_arithmetic_sequence.csv` — 76,947 records, 17 columns (CSV with header).
- `math_arithmetic_sequence.jsonl` — the same records in JSON Lines format (one JSON object per line).
- `README.md` — this documentation.