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.

A340008 a(n) is the image of n under the map: n -> n/2 if n is even, n-> n^2 - 1 if n is an odd prime, otherwise n -> n - 1.

Table of values

n a(n)
1 0
2 1
3 8
4 2
5 24
6 3
7 48
8 4
9 8
10 5
11 120
12 6
13 168
14 7
15 14
16 8
17 288
18 9
19 360
20 10
21 20
22 11
23 528
24 12
25 24
26 13
27 26
28 14
29 840
30 15
31 960
32 16
33 32
34 17
35 34
36 18
37 1368
38 19
39 38
40 20
41 1680
42 21
43 1848
44 22
45 44
46 23
47 2208
48 24
49 48
50 25
51 50
52 26
53 2808
54 27
55 54
56 28
57 56
58 29
59 3480
60 30
61 3720
62 31
63 62
64 32

List of values

[0, 1, 8, 2, 24, 3, 48, 4, 8, 5, 120, 6, 168, 7, 14, 8, 288, 9, 360, 10, 20, 11, 528, 12, 24, 13, 26, 14, 840, 15, 960, 16, 32, 17, 34, 18, 1368, 19, 38, 20, 1680, 21, 1848, 22, 44, 23, 2208, 24, 48, 25, 50, 26, 2808, 27, 54, 28, 56, 29, 3480, 30, 3720, 31, 62, 32]