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.

A118878 Let T(S,Q) be the sequence obtaining by starting with S and repeatedly reversing the digits and adding Q to get the next term. a(n) is the number of steps for T(n,5) to reach a cycle, or -1 if no cycle is ever reached.

Table of values

n a(n)
1 1
2 190
3 1
4 87
5 1
6 0
7 189
8 0
9 86
10 0
11 0
12 188
13 0
14 85
15 191
16 0
17 0
18 95
19 0
20 190
21 1
22 0
23 184
24 0
25 3
26 187
27 0
28 0
29 91
30 0
31 96
32 0
33 0
34 180
35 88
36 0
37 183
38 0
39 0
40 87
41 1
42 92
43 0
44 0
45 3
46 84
47 0
48 179
49 0
50 0
51 191
52 0
53 88
54 0
55 2
56 190
57 2
58 87
59 2
60 1
61 2
62 97
63 2
64 192
65 3
66 0
67 186
68 0
69 83
70 189
71 0
72 0
73 93
74 0
75 98
76 0
77 0
78 182
79 0
80 1
81 185
82 0
83 0
84 89
85 3
86 94
87 0
88 0
89 178
90 86
91 0
92 181
93 0
94 0
95 193
96 0
97 90
98 0
99 0
100 1

List of values

[1, 190, 1, 87, 1, 0, 189, 0, 86, 0, 0, 188, 0, 85, 191, 0, 0, 95, 0, 190, 1, 0, 184, 0, 3, 187, 0, 0, 91, 0, 96, 0, 0, 180, 88, 0, 183, 0, 0, 87, 1, 92, 0, 0, 3, 84, 0, 179, 0, 0, 191, 0, 88, 0, 2, 190, 2, 87, 2, 1, 2, 97, 2, 192, 3, 0, 186, 0, 83, 189, 0, 0, 93, 0, 98, 0, 0, 182, 0, 1, 185, 0, 0, 89, 3, 94, 0, 0, 178, 86, 0, 181, 0, 0, 193, 0, 90, 0, 0, 1]