cp's OEIS Frontend

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.

A302687 a(1) = 1; a(2) = 2; then a(n) is the smallest number > a(n-1) such that a(n) divides concat(a(1), a(2), ..., a(n-1)).

This page as a plain text file.
%I A302687 #30 Apr 16 2018 03:21:22
%S A302687 1,2,3,41,43,129,9567001,21147541,22662659,23817877,24837187,28850377,
%T A302687 28872229,37916473,48749751,70416307,439229167,834385607,2270365163,
%U A302687 2278377431,3751789547,4433933101,4810754611,14432263833,15632412757,30530543651,42441819717,65591903199,65857498407
%N A302687 a(1) = 1; a(2) = 2; then a(n) is the smallest number > a(n-1) such that a(n) divides concat(a(1), a(2), ..., a(n-1)).
%e A302687 a(3) = 3, which makes the concatenation of the first three terms: 123. After 3, the next-highest factor of 123 is 41, so a(4) = 41. The concatenation of the first four terms is then 12341. After 41, the next-highest factor of 12341 is 43, so a(5) = 43.
%p A302687 A[1]:= 1: A[2]:= 2: C:= 1:
%p A302687 for n from 3 to 20 do
%p A302687   C:= A[n-1]+C*10^(ilog10(A[n-1])+1);
%p A302687   A[n]:= min(select(`>`,numtheory:-divisors(C),A[n-1]))
%p A302687 od:
%p A302687 seq(A[i],i=1..20); # _Robert Israel_, Apr 12 2018
%Y A302687 Compare A240588, in which each term does not need to strictly increase as long as it has not yet appeared in the sequence.
%Y A302687 Compare also A171785, in which each term must divide the concatenation of all terms in the sequence including itself.
%Y A302687 In A029455, each term divides the concatenation of all smaller positive integers.
%Y A302687 In A110740, each term divides the concatenation of all strictly smaller positive integers.
%K A302687 nonn,base
%O A302687 1,2
%A A302687 _Daniel Sterman_, Apr 11 2018
%E A302687 a(16)-a(20) from _Robert Israel_, Apr 12 2018
%E A302687 a(21)-a(29) from _Daniel Suteu_, Apr 12 2018