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.

A079878 a(1)=1, then a(n)=2*a(n-1) if 2*a(n-1)<=n, a(n)=2*a(n-1)-n otherwise.

Table of values

n a(n)
1 1
2 2
3 1
4 2
5 4
6 2
7 4
8 8
9 7
10 4
11 8
12 4
13 8
14 2
15 4
16 8
17 16
18 14
19 9
20 18
21 15
22 8
23 16
24 8
25 16
26 6
27 12
28 24
29 19
30 8
31 16
32 32
33 31
34 28
35 21
36 6
37 12
38 24
39 9
40 18
41 36
42 30
43 17
44 34
45 23
46 46
47 45
48 42
49 35
50 20
51 40
52 28
53 3
54 6
55 12
56 24
57 48
58 38
59 17
60 34
61 7
62 14
63 28
64 56
65 47
66 28
67 56
68 44
69 19
70 38
71 5
72 10
73 20
74 40
75 5
76 10
77 20
78 40
79 1
80 2

List of values

[1, 2, 1, 2, 4, 2, 4, 8, 7, 4, 8, 4, 8, 2, 4, 8, 16, 14, 9, 18, 15, 8, 16, 8, 16, 6, 12, 24, 19, 8, 16, 32, 31, 28, 21, 6, 12, 24, 9, 18, 36, 30, 17, 34, 23, 46, 45, 42, 35, 20, 40, 28, 3, 6, 12, 24, 48, 38, 17, 34, 7, 14, 28, 56, 47, 28, 56, 44, 19, 38, 5, 10, 20, 40, 5, 10, 20, 40, 1, 2]