OFFSET
1,1
COMMENTS
In simpler terms, the sequence indexes where digits repeat when the natural numbers are written out in base 10.
EXAMPLE
N | N-th digit | Is digit || N | N-th digit | Is digit ||
| | as previous? || | | as previous? ||
-------------------------------------------------------------------------
| | || | | ||
1 | 1 | No || 21 | 5 | No ||
2 | 2 | No || 22 | 1 | No ||
3 | 3 | No || 23 | 6 | No ||
4 | 4 | No || 24 | 1 | No ||
5 | 5 | No || 25 | 7 | No ||
6 | 6 | No || 26 | 1 | No ||
7 | 7 | No || 27 | 8 | No ||
8 | 8 | No || 28 | 1 | No ||
9 | 9 | No || 29 | 9 | No ||
10 | 1 | No || 30 | 2 | No ||
11 | 0 | No || 31 | 0 | No ||
12 | 1 | No || 32 | 2 | No ||
13 | 1 | Yes || 33 | 1 | No ||
14 | 1 | Yes || 34 | 2 | No ||
15 | 2 | No || 35 | 2 | Yes ||
16 | 1 | No || 36 | 2 | Yes ||
17 | 3 | No || 37 | 3 | No ||
18 | 1 | No || 38 | 2 | No ||
19 | 4 | No || 39 | 4 | No ||
20 | 1 | No || 40 | 2 | No ||
MATHEMATICA
f[n_]:=Last@First@RealDigits[ChampernowneNumber[], 10, n];
Select[Range@554, f[#]==f[#+1]&]+1 (* Giorgos Kalogeropoulos, Sep 17 2021 *)
PROG
(Python)
x = ''
x = ''.join([x+str(k) for k in range(0, 100)])
print(', '.join([str(i) for i in [k for k in range(1, len(x)) if x[k] == x[k-1]]]))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Alfred Holton-Stoppani, Sep 16 2021
STATUS
approved