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.

A152423 A variation of the Josephus problem, removing every other person, starting with person 1; a(n) is the last person remaining.

Table of values

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

List of values

[1, 2, 2, 4, 2, 4, 6, 8, 2, 4, 6, 8, 10, 12, 14, 16, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20]