# 303 : 小さい桁を持つ倍数

正の整数$$n$$に対し$$f(n)$$を、$$n$$の倍数であり 10 進数で表すと 2 以下の数字のみが用いられる最小の数と定義する。

すると$$f(2)=2, f(3)=12, f(7)=21, f(42)=210, f(89)=1121222$$である。

また$$\displaystyle \sum\_{n=1}^{100}\frac{f(n)}{n} = 11363107$$である。

$$\displaystyle \sum\_{n=1}^{10000} \frac{f(n)}{n}$$を求めよ。


---

# Agent Instructions: 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/301-400/301-310/p303.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.
