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.

A348295 a(n) = Sum_{k=1..n} (-1)^(floor(k*(sqrt(2)-1))).

Table of values

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

List of values

[0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 2, 3, 4, 3, 2, 3, 4, 3, 2, 1, 2, 3, 2, 1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 2, 3, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 3, 2, 1, 2, 3, 2, 1, 2, 3, 4, 3, 2, 3, 4, 5, 4, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 4, 5, 4, 3, 2, 3, 4, 3, 2, 3, 4, 5, 4]