OFFSET
1,13
COMMENTS
In other words, we concatenate the first n positive numbers, and then we decimate them from the right; a(n) is what remains at the end of this procedure.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..1341
Rémy Sigrist, C# program for A330398
EXAMPLE
For n = 13:
- we have:
k S_13(k)
-- -----------------
0 12345678910111213
1 1234567891011123
2 123456789101113
3 12345678910111
4 1235678910111
5 123678910111
6 12378910111
7 1238910111
8 123910111
9 12310111
10 123111
11 1231
12 31
13 31
- hence a(13) = 31.
PROG
(C#) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 25 2020
STATUS
approved