This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A371958 #20 May 02 2024 10:49:39 %S A371958 10,10,30,102,120,240,1260,1680,8596,34580,113760,576840,3579840, %T A371958 14938560,109133640 %N A371958 The smallest number k that has a factorization k = f1*f2*...*fr where the numbers k, f1, f2, ..., fr together contain every number from 0 to n, without overlap, as substrings. %C A371958 In the first thirteen terms the 'perfect' solutions (ones without any excess digits) are for n = 6, 9, 10, 11, 12. It is likely such solutions become very rare as n increases. %e A371958 a(1) = 10 as 10 = 2 * 5, and {10, 2, 5} contains the numbers 0 and 1 as non-overlapping substrings, and no smaller number has a similar factorization. %e A371958 a(2) = 10 as {10, 2, 5} also contains the number 0, 1, and 2. %e A371958 a(3) = 30 as 30 = 2 * 15, and {30, 2, 15} contains 0,..,3. %e A371958 a(4) = 102 as 102 = 3 * 34, which contains 0,..,4. %e A371958 a(5) = 120 as 120 = 2 * 3 * 4 * 5, which contains 0,..,5. %e A371958 a(6) = 240 as 240 = 3 * 5 * 16, which contains 0,..,6. The first perfect solution. %e A371958 a(7) = 1260 as 1260 = 3 * 3 * 4 * 5 * 7, which contains 0,..,7. %e A371958 a(8) = 1680 as 1680 = 2 * 2 * 3 * 4 * 5 * 7, which contains 0,..,8. %e A371958 a(9) = 8596 as 8596 = 2 * 14 * 307, which contains 0,..,9. A perfect solution. %e A371958 a(10) = 34580 = 7 * 10 * 19 * 26, which contains 0,..,10. A perfect solution. Note that all three of 0, 1, and 10 must appear as separate nonoverlapping substrings. %e A371958 a(11) = 113760 as 113760 = 2 * 4 * 9 * 10 * 158, which contains 0,..,11. A perfect solution. %e A371958 a(12) = 576840 as 576840 = 10 * 11 * 12 * 19 * 23, which contains 0,..,12. A perfect solution. %e A371958 a(13) = 3579840 as 3579840 = 2 * 2 * 6 * 10 * 11 * 12 * 113, which contains 0,..,13. %e A371958 a(14) = 14938560 as 14938560 = 7 * 10 * 12 * 12 * 13 * 114, which contains 0,...,14. A perfect solution. %e A371958 a(15) = 109133640 as 109133640 = 2 * 11 * 14 * 18 * 127 * 155, which contains 0,...,15. %Y A371958 Cf. A027746, A001055, A370970, %K A371958 nonn,base,more %O A371958 1,1 %A A371958 _Scott R. Shannon_, Apr 14 2024 %E A371958 a(14)-a(15) from _David Consiglio, Jr._, Apr 25 2024