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.

A117136 Triangle read by rows: row n always begins with 1. Later terms in row n are obtained by successively subtracting or adding the numbers n, n+1, n+2, until reaching 1 again. The rule is that you subtract if the result is positive, otherwise you add.

Table of values

n a(n)
0 1
1 1
2 1
3 2
4 4
5 1
6 1
7 3
8 6
9 2
10 7
11 1
12 1
13 4
14 8
15 3
16 9
17 2
18 10
19 1
20 1
21 5
22 10
23 4
24 11
25 3
26 12
27 2
28 13
29 1
30 1
31 6
32 12
33 5
34 13
35 4
36 14
37 3
38 15
39 2
40 16
41 1
42 1
43 7
44 14
45 6
46 15
47 5
48 16
49 4
50 17
51 3
52 18
53 2
54 19
55 1

List of values

[1, 1, 1, 2, 4, 1, 1, 3, 6, 2, 7, 1, 1, 4, 8, 3, 9, 2, 10, 1, 1, 5, 10, 4, 11, 3, 12, 2, 13, 1, 1, 6, 12, 5, 13, 4, 14, 3, 15, 2, 16, 1, 1, 7, 14, 6, 15, 5, 16, 4, 17, 3, 18, 2, 19, 1]