cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A077187 Smallest k such that the concatenation 123...(k-1) k (k-1)...321 ( a concatenation of natural numbers from 1 to k and back to 1) is a multiple of prime(n), or 0 if no such number exists.

Table of values

n a(n)
1 0
2 3
3 0
4 6
5 2
6 6
7 109
8 103
9 100001
10 1006
11 17
12 3
13 5
14 103
15 1000002
16 100012
17 1019
18 1002
19 1001
20 16
21 8
22 105
23 1036
24 104
25 1002
26 4
27 100000000009
28 100004
29 52
30 156
31 10000000012
32 1062
33 8
34 1002
35 28
36 102
37 1011
38 1000062
39 30
40 10001
41 118
42 52
43 43
44 10058
45 34
46 47

List of values

[0, 3, 0, 6, 2, 6, 109, 103, 100001, 1006, 17, 3, 5, 103, 1000002, 100012, 1019, 1002, 1001, 16, 8, 105, 1036, 104, 1002, 4, 100000000009, 100004, 52, 156, 10000000012, 1062, 8, 1002, 28, 102, 1011, 1000062, 30, 10001, 118, 52, 43, 10058, 34, 47]