login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Lexicographically earliest sequence of distinct positive integers such that for any n > 0, the initial digit of n divides a(n).
2

%I #7 Aug 27 2024 12:20:13

%S 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,24,26,28,30,32,

%T 34,36,38,21,27,33,39,42,45,48,51,54,57,40,44,52,56,60,64,68,72,76,80,

%U 25,35,50,55,65,70,75,85,90,95,66,78,84,96,102,108,114

%N Lexicographically earliest sequence of distinct positive integers such that for any n > 0, the initial digit of n divides a(n).

%C This sequence is a permutation of the positive integers with inverse A375759.

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

%H Rémy Sigrist, <a href="/A375758/a375758.gp.txt">PARI program</a>

%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

%e The first terms are:

%e n a(n) a(n)/A30(n) | n a(n) a(n)/A30(n)

%e -- ---- ----------- | -- ---- -----------

%e 1 1 1 | 16 16 16

%e 2 2 1 | 17 17 17

%e 3 3 1 | 18 18 18

%e 4 4 1 | 19 19 19

%e 5 5 1 | 20 20 10

%e 6 6 1 | 21 22 11

%e 7 7 1 | 22 24 12

%e 8 8 1 | 23 26 13

%e 9 9 1 | 24 28 14

%e 10 10 10 | 25 30 15

%e 11 11 11 | 26 32 16

%e 12 12 12 | 27 34 17

%e 13 13 13 | 28 36 18

%e 14 14 14 | 29 38 19

%e 15 15 15 | 30 21 7

%o (PARI) \\ See Links section.

%Y Cf. A000030, A308539, A375759 (inverse).

%K nonn,base

%O 1,2

%A _Rémy Sigrist_, Aug 26 2024