login
When a digit d is prime, the next digit is > d.
6

%I #10 Feb 28 2021 09:54:41

%S 0,1,2,3,4,5,6,7,8,9,10,11,12,34,13,40,14,15,60,16,17,80,18,19,23,41,

%T 24,25,61,26,27,81,28,29,35,62,36,37,82,38,39,42,43,44,45,63,46,47,83,

%U 48,49,56,57,84,58,59,64,65,66,67,85,68,69,78,79,86,87,88,89,90,91,92,93,94,95,96,97,98,99

%N When a digit d is prime, the next digit is > d.

%C After a(1) = 0, the sequence is always extended with the smallest positive integer not yet present that doesn't lead to a contradiction.

%H Rémy Sigrist, <a href="/A342046/b342046.txt">Table of n, a(n) for n = 1..10000</a>

%H Rémy Sigrist, <a href="/A342046/a342046.gp.txt">PARI program for A342046</a>

%o (PARI) See Links section.

%Y Cf. A342042, A342043, A342044, A342045 and A342047 (variations on the same idea).

%K base,nonn

%O 1,3

%A _Eric Angelini_, Feb 26 2021