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.

A297158 Ludic ladder sequence: a(n) = Sum_{k=1..n} (-1)^LudicPi(k), where LudicPi(n) = A192512(n)-1 gives the number of Ludic numbers > 1 and <= n.

Table of values

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

List of values

[0, 1, 0, 1, 2, 1, 0, 1, 2, 3, 4, 3, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 1, 2, 1, 0, -1, -2, -1, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, -1, -2, -1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]