# [seqfan] n = a(n) minus next digit

Eric Angelini Eric.Angelini at kntv.be
Thu Nov 6 13:37:52 CET 2014

```Hello SeqFans,
n = a(n) - [first digit of a(n+1)]

A = 2 10 8 5 12 7 16 9 10 11  12  13  14  15  16  17  19  20  21  22  23  24
n = 1  2 3 4  5 6  7 8  9  10  11  12  13  14  15  16  17  18  19  20  21

A = (24) 25  26  27  29  30  31  32  33  34  35  36  37  39  40  41  42  43
n =  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38

A = (43) 44  45  46  47  49  50  51  52  53  54  55  56  57  59  60  61  62
n =  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55

A = (62) 63  64  65  66  67  69  70  71  72  73  74  75  76  77  79  80  81
n =  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72

A = (81) 82  83  84  85  86  87  89  90  91  92  93  94  95  96  97  98  91
n =  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89

A = (91) 100  93  102  95  104  97  106  99  100  101   102   103   104 ...
n =  90   91  92   93  94   95  96   97  98   99   100   101   102 ...

I guess A is the lexico-first such sequence -- can't prove though A won't
stop somewhere...

Best,
É.

```