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.

A128049 Least number k>0 such that abs((3^k - (3-n)^k)/n) is prime, or 0 if no such prime exists.

Table of values

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

List of values

[0, 2, 3, 2, 2, 3, 0, 3, 2, 2, 3, 2, 0, 2, 3, 0, 3, 2, 0, 2, 37, 0, 3, 2, 0, 2, 1153, 0, 83, 2, 0, 3, 11, 0, 3, 2, 0, 2, 3, 0, 557, 19, 0, 2, 3, 0, 7, 2, 0, 2, 631, 0, 5, 2, 0, 3, 3, 0, 239, 2, 0, 5, 3, 0, 3, 2, 0, 2, 317, 0, 3, 103, 0, 2, 7, 0, 3, 2, 0, 2, 43]