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 A171785 #24 Feb 18 2024 08:27:40 %S A171785 1,2,3,5,10,12,15,20,25,30,39,44,50,100,101,125,150,188,200,220,230, %T A171785 250,272,304,320,370,376,400,500,525,600,615,625,1000,1250,1487,1500, %U A171785 1590,1696,1750,2000,2245,2500,3000,3090,3125,3800,4000,5000,5725,6122,7025 %N A171785 Start with a(1) = 1; then a(n) = smallest number > a(n-1) such that a(n) divides concat(a(1), a(2), ..., a(n)). %C A171785 Primes appearing so far are 2, 3, 5, 101, 1487. %H A171785 Robert G. Wilson v, <a href="/A171785/b171785.txt">Table of n, a(n) for n = 1..584</a> %e A171785 1: 1 divides 1 %e A171785 1,2: 2 divides 12 %e A171785 1,2,3: 3 divides 123 %e A171785 1,2,3,4: 4 does NOT divide 1234, so %e A171785 1,2,3,5: 5 divides 1235 %e A171785 etc. %t A171785 f[s_List] := Block[{k = s[[ -1]] + 1, conc = FromDigits[Flatten@ IntegerDigits@s]}, While[ Mod[conc*10^Floor[ Log[10, k] + 1] + k, k] != 0, k++ ]; Append[s, k]]; Nest[f, {1}, 51] (* _Robert G. Wilson v_, Oct 14 2010 *) %t A171785 nxt[{a_,c_}]:=Module[{k=a+1},While[!Divisible[c*10^IntegerLength[k]+ k, k], k++];{k,c*10^IntegerLength[k]+k}]; Transpose[NestList[nxt,{1,1},60]][[1]] (* _Harvey P. Dale_, Mar 08 2015 *) %Y A171785 See A029455 for numbers that divide the concatenation of all numbers <= n. %K A171785 nonn,base %O A171785 1,2 %A A171785 _David Scambler_, Sep 30 2010 %E A171785 More terms from _Robert G. Wilson v_, Oct 14 2010