{
 "problem_id": "TOYO-E0007-Q01-S04",
 "transcript": {
  "text": "(4) 5種類のカード 0、1、2、5、6 がそれぞれ1枚ずつあります。この中から3枚を選んで並べ、3けたの整数を作ります。このとき、3の倍数は全部で何通りできますか。",
  "status": "agent_visual_confirmed",
  "notes": "原本ではカードの数字 0, 1, 2, 5, 6 がそれぞれ四角で囲まれている。"
 },
 "depends_on": [],
 "solution": {
  "final_answer": "20通り",
  "unit": null,
  "first_insight": "3 の倍数は『各位の和が 3 の倍数』。まず 3 枚の組 (和が 3 の倍数) を選び、次に並べ方を数える (0 は先頭に置けない)。",
  "insight_basis": "並べ方を先に考えると数が多すぎる。『組を選ぶ → 並べる』の 2 段階にし、0 を含む組と含まない組で並べ方の数が違うことに注意する。",
  "steps": [
   "5 枚から 3 枚を選ぶ 10 組のうち、和が 3 の倍数の組: {0,1,2} (和 3)、{0,1,5} (和 6)、{1,2,6} (和 9)、{1,5,6} (和 12) の 4 組",
   "0 を含む組 {0,1,2}, {0,1,5}: 百の位は 0 以外の 2 通り、残り 2 枚の並べ方 2 通り → 2×2 = 4 通りずつ → 8 通り",
   "0 を含まない組 {1,2,6}, {1,5,6}: 3 枚の並べ方 3×2×1 = 6 通りずつ → 12 通り",
   "合計 8 + 12 = 20 通り"
  ],
  "why": "3 の倍数かどうかは『各位の和』だけで決まり、並べ方に関係ない。だから組で場合分けしてから並べ方を数えればよい。",
  "check": "10 組すべての和: {0,1,2}3 {0,1,5}6 {0,1,6}7 {0,2,5}7 {0,2,6}8 {0,5,6}11 {1,2,5}8 {1,2,6}9 {1,5,6}12 {2,5,6}13 → 3 の倍数は 4 組で漏れなし。4+4+6+6 = 20 ✓ (教師用: 5P3 = 60 通りを全列挙しても 20)。",
  "common_errors": [
   {
    "error": "0 を含む組でも並べ方を 6 通りとして 24 通りにする",
    "where": "2手目",
    "detect": "012 のように 0 が先頭だと 3 けたにならない。0 を含む組は 4 通り"
   },
   {
    "error": "和が 3 の倍数の組を漏らす ({1,5,6} の和 12 を見落とす等)",
    "where": "1手目",
    "detect": "10 組すべての和を表に書いて確認"
   }
  ],
  "minimal_points": [
   "3 の倍数 ⇔ 各位の和が 3 の倍数",
   "組を選んでから並べる",
   "0 を含む組は先頭に制限 (4 通り)、含まない組は 6 通り"
  ],
  "related": []
 },
 "hints": [
  "3 の倍数かどうかは、各位の数の和で決まる",
  "まず『どの 3 枚を選ぶか』を考え、和が 3 の倍数になる組をすべて書き出す",
  "0 を含む組は百の位に 0 を置けないので、並べ方の数が変わる"
 ],
 "analysis": {
  "primary_field": "場合の数",
  "secondary_fields": [],
  "cores": [
   "倍数判定 (各位の和)",
   "『選ぶ→並べる』の 2 段階",
   "0 の扱いの場合分け"
  ],
  "prerequisites": [
   "3 の倍数の判定法",
   "順列の数え方",
   "0 を含む整数の並べ方"
  ],
  "insight_triggers": "『3 の倍数は何通り』 → 各位の和で組を分ける",
  "core_explanation": "",
  "barrier": "場合分け",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "B",
  "difficulty_basis": "倍数判定・組の列挙・0 の制限の 3 段階を組み合わせる",
  "difficulty_scale": "典型解法を組み合わせる・条件整理が必要 (3〜4段階)",
  "est_minutes": 4,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "場合分けの漏れ"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "",
  "alternatives": "",
  "intent_estimate": "場合の数の基本 (組を選んでから並べる・0 の処理) を短時間で正確にできるかの確認 (確信度: 高)。",
  "confidence": "高"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 54,
   "principle": "カードならべ (場合分け・0 の扱い)"
  },
  {
   "page": 5,
   "principle": "倍数判定法 (各位の和)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T11:38:18+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "cb87c34a955629f507a15f4128c984cf14212a305a1220bef7fb464b612ddd99",
 "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": "5P3 = 60 通りの並べ方を全列挙し、3 けたになり 3 の倍数のものを数える",
    "result": "計算値 20 / 期待値 20 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '20通り' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0007.py",
  "verified_at": "2026-10-23T00:20:01+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "20通り",
  "computed": "20",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}