Determine the largest integer A such that for K=1,2,3,...,length(A) the first K digits of A form an integer divisible by K.
For example, for 56165, 5 is divisible by 1, 56 is divisible by 2, 561 is divisible by 3, 5616 is divisible by 4 and 56165 is divisible by 5.
(In reply to
Comparison to expectation by Jer)
That is pretty interesting.
In fact the underperformance is about a factor of .9 up to about N=15.
I wonder if this is related to the fact that the first digit is never zero so there are only 9 choices for the first digit.
|
Posted by Larry
on 2024-04-28 15:43:21 |