login
Lexicographically earliest sequence of distinct terms > 0 such that the n-th digit of the sequence is present in the product a(n)*a(n+1).
4

%I #12 Feb 24 2021 11:42:32

%S 1,10,11,19,6,2,5,18,7,3,15,8,16,17,9,12,13,14,37,26,4,43,21,31,20,50,

%T 27,23,28,44,29,25,24,35,40,33,22,46,30,34,36,39,41,49,38,45,47,51,32,

%U 54,56,58,42,57,48,53,52,62,55,59,60,61,63,64,66,65,67,68,74,69,70,71,73,72,81,79,76

%N Lexicographically earliest sequence of distinct terms > 0 such that the n-th digit of the sequence is present in the product a(n)*a(n+1).

%H Carole Dubois, <a href="/A341820/b341820.txt">Table of n, a(n) for n = 1..5000</a>

%e The 1st digit of the sequence [1] is present in a(1)*a(2) = 1 * 10 = 10;

%e the 2nd digit of the sequence [1] is present in a(2)*a(3) = 10 * 11 = 110;

%e the 3rd digit of the sequence [0] is present in a(3)*a(4) = 11 * 19 = 209;

%e the 4th digit of the sequence [1] is present in a(4)*a(5) = 19 * 6 = 114;

%e the 5th digit of the sequence [1] is present in a(5)*a(6) = 6 * 2 = 12;

%e the 6th digit of the sequence [1] is present in a(6)*a(7) = 2 * 5 = 10;

%e the 7th digit of the sequence [9] is present in a(7)*a(8) = 5 * 18 = 90;

%e etc.

%Y Cf. A341818 (sum), A341819 (absolute difference), A341821 (cumulative sum).

%K base,nonn

%O 1,2

%A _Eric Angelini_ and _Carole Dubois_, Feb 20 2021