# What is the largest number such that the number formed by the first $n$ digits is divisible by $n$? [duplicate]

What is the largest number such that the number formed by the first $n$ digits is divisible by $n$?

For example, if we have a number $$abcdefghijklm,$$ and all of these leters stand for digits, then $a$ is divisible by $1$, $ab$ is divisible by $2$, $abc$ is divisible by $3$, and so on. Also, what is allowed is (besides $a$) the digits can be $0$ and digits can repeat.

## marked as duplicate by Zander, Start wearing purple, Lord_Farin, Mark Bennet, Davide GiraudoJun 8 '13 at 12:31

• If you're gready, it feels like you get to $98765\ldots$? – Jeppe Stig Nielsen May 22 '13 at 22:11
• As a side note, numberphile just did a video where they mentioned a (the only) pan-digital polydivisible number, $3,\!816,\!547,\!290$. – Arthur May 22 '13 at 22:26
$3608528850368400786036725$