<p>Ein Stammbruch hat eine 1 im Zähler. Die dezimale Darstellung von Stammbrüchen mit den Nennern 2 bis 10 ist gegeben:</p>
<blockquote>
<table><tbody><tr><td><sup>1</sup>/<sub>2</sub></td><td>= </td><td>0.5</td>
</tr><tr><td><sup>1</sup>/<sub>3</sub></td><td>= </td><td>0.(3)</td>
</tr><tr><td><sup>1</sup>/<sub>4</sub></td><td>= </td><td>0.25</td>
</tr><tr><td><sup>1</sup>/<sub>5</sub></td><td>= </td><td>0.2</td>
</tr><tr><td><sup>1</sup>/<sub>6</sub></td><td>= </td><td>0.1(6)</td>
</tr><tr><td><sup>1</sup>/<sub>7</sub></td><td>= </td><td>0.(142857)</td>
</tr><tr><td><sup>1</sup>/<sub>8</sub></td><td>= </td><td>0.125</td>
</tr><tr><td><sup>1</sup>/<sub>9</sub></td><td>= </td><td>0.(1)</td>
</tr><tr><td><sup>1</sup>/<sub>10</sub></td><td>= </td><td>0.1</td>
</tr></tbody></table></blockquote>
<p>Dabei bedeutet 0.1(6) 0.166666..., und hat eine 1-stellige Periode. Es ist zu sehen, dass <sup>1</sup>/<sub>7</sub> eine 6-stellige Periode hat.</p>
<p>Finden Sie den Wert von <i>d</i> < 1000, für den <sup>1</sup>/<sub><i>d</i></sub> die längste Periode in den Nachkommastellen hat.</p>