{
 "problem_id": "TOYO-E0017-Q02-S02",
 "transcript": {
  "text": "次の各問いに答えなさい。\n(2) 7人がけの長いすと4人がけの長いすが合わせて21脚あります。ある集会で、参加者全員が7人がけの長いすだけをすべて使うと、最後の1脚に座っているのは4人です。また、4人がけの長いすだけをすべて使うと、1人座れません。7人がけの長いすは何脚ありますか。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [],
 "solution": {
  "final_answer": "8脚",
  "unit": null,
  "first_insight": "参加者の人数を 2 通りに表す。『7人がけだけですべて使い、最後の 1 脚が 4 人』→ 人数 = 7×(7人がけの脚数) − 3。『4人がけだけで 1 人座れない』→ 人数 = 4×(4人がけの脚数) + 1。",
  "insight_basis": "最後の 1 脚に 4 人なら、満席 (7 人) より 3 人少ない。『1 人座れない』は満席より 1 人多い。どちらも『満席の人数 ± 差』の形。",
  "steps": [
   "7人がけを □ 脚、4人がけを △ 脚とすると □ + △ = 21",
   "人数 = 7 × □ − 3 (最後の 1 脚は 7 − 4 = 3 人分空く)、人数 = 4 × △ + 1 (全部満席でも 1 人余る)",
   "7 × □ − 3 = 4 × △ + 1 → 7 × □ = 4 × △ + 4 = 4 × (△ + 1) = 4 × (22 − □)",
   "7 × □ + 4 × □ = 88 → 11 × □ = 88 → □ = 8 (脚)",
   "確認: 4人がけ 13 脚。人数 = 7×8 − 3 = 53 = 4×13 + 1 ✓"
  ],
  "why": "同じ人数を 2 つの式で表し、□ + △ = 21 を使って △ を消去する (消去算)。『7□ = 4×(22−□)』の形にすると、□ を 1 増やすごとに左は 7 増え右は 4 減るので、11 ずつ差が縮む。",
  "check": "書き出し: □ = 1, 2, … について 7□ − 3 が『4 で割ると 1 余る』数になるか調べる。□ = 4 → 25 (余り 1 ✓ だが △ = 17 → 4×17+1 = 69 ≠ 25 ✗)、□ = 8 → 53 = 4×13 + 1 ✓ (△ = 13)。□ + △ = 21 も満たすのは □ = 8 のみ",
  "common_errors": [
   {
    "error": "『最後の 1 脚に 4 人』を 7×□ + 4 と式にする",
    "where": "2手目",
    "detect": "最後の 1 脚『に』4 人 = その脚も使っている。7×(□−1) + 4 = 7×□ − 3"
   },
   {
    "error": "『1 人座れない』を 4×△ − 1 とする",
    "where": "2手目",
    "detect": "座れない人がいる = 席より人が多い → +1"
   },
   {
    "error": "□ + △ = 21 を使わず 2 つの式だけで止まる",
    "where": "3手目",
    "detect": "未知数 2 つなら式が 2 つ必要。『合わせて 21 脚』が 2 本目"
   }
  ],
  "minimal_points": [
   "人数を 2 通りに表す (7□−3、4△+1)",
   "□+△=21 で △ を消す",
   "11×□ = 88"
  ],
  "related": []
 },
 "hints": [
  "参加者の人数を『7人がけだけ使う場合』と『4人がけだけ使う場合』の 2 通りの式で表す",
  "『最後の 1 脚に 4 人』は満席より何人少ないか、『1 人座れない』は満席より何人多いか",
  "2 つの人数の式を等しいとおき、『合わせて 21 脚』を使って 4人がけの脚数を消す"
 ],
 "analysis": {
  "primary_field": "文章題",
  "secondary_fields": [],
  "cores": [
   "消去算",
   "過不足の表現(満席±差)"
  ],
  "prerequisites": [
   "過不足算",
   "消去算 (2元)"
  ],
  "insight_triggers": "『最後の 1 脚に○人』『○人座れない』→ 満席との差で人数を表す",
  "core_explanation": "",
  "barrier": "読解・条件整理",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "B",
  "difficulty_basis": "過不足の 2 式を立てて消去算。式化の読み違い (−3 と +1) が主な関門",
  "difficulty_scale": "典型解法を組み合わせる・条件整理が必要 (3〜4段階)",
  "est_minutes": 4,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "条件の読み落とし",
   "計算ミス"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "",
  "alternatives": "教師用: 7x − 3 = 4(21 − x) + 1 → 11x = 88 → x = 8。人数 53 人。",
  "intent_estimate": "長いすの過不足算を『2 種類の長いすが混在』という形にひねり、人数を 2 通りに表して消去算に落とせるかを見る (確信度: 中)",
  "confidence": "中"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 31,
   "principle": "消去算・差集め算 (そろえる)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T11:04:46+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "ff949b4aa224c9ec67bcd058973426d43cfbfeb8b515f5ebf6f3c5018fd286e7",
 "verification": {
  "checks": {
   "source_mapping_confirmed": true,
   "crop_visually_checked": true,
   "shared_context_confirmed": true,
   "answer_consistency_checked": true,
   "independent_verification_passed": true,
   "no_unresolved_conflicts": true,
   "explanation_reproducible": true,
   "no_answer_leak_on_front": true
  },
  "methods": [
   {
    "method": "7人がけの脚数 1〜20 を全探索し、人数の 2 つの表現が一致するものを探す (一意性も確認)",
    "result": "計算値 8 / 期待値 8 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '8脚' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0017.py",
  "verified_at": "2026-10-23T00:20:57+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "8脚",
  "computed": "8",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}