> For the complete documentation index, see [llms.txt](https://project-euler-ja.gitbook.io/project-euler-ja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://project-euler-ja.gitbook.io/project-euler-ja/701-800/731-740/p737.md).

# 737 : コイン・ループ

たくさんの同質なコインを使って水平なテーブル上でゲームをする。

テーブルに垂直な直線をひとつ考える。 最初のコインはその直線に接するようにテーブルに置かれる。 そして、一枚ずつ、コインは直前に置かれたコインの上に水平に，かつ垂直線に接するように置かれる。 置かれるコインは全てバランスを保っていなければならない。

下の図は、点 P が直線の位置を表すとして、8 枚のコインが置かれた様子を示している。

![](https://projecteuler.net/project/images/p737_coinloop.jpg)

コイン・ループを形成するためには最小限 31 枚のコインが必要である。すなわち、それぞれのコインをテーブルに射影したとして、直線に対して$$n$$枚目のコインの中心が$$(n-1)$$枚目のコインの中心から$$\theta\_n$$回転しているとして、その総和$$\displaystyle \sum\_{k=2}^n \theta\_k$$がはじめて360°を超えるのが$$n = 31$$ということである。一般化して、$$k$$回ループする$$n$$とは和が$$360^{\circ} k$$を超える最小の数である。

同じように、直線の周りを2回ループさせるためには154個のコイン、10回ループさせるためには6947個のコインが必要である。

直線の周りを2020回ループさせるためには何個のコインが必要か計算せよ。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://project-euler-ja.gitbook.io/project-euler-ja/701-800/731-740/p737.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
