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.

A117387 Prime nearest to 2^n. In case of a tie, choose the smaller.

Table of values

n a(n)
0 2
1 2
2 3
3 7
4 17
5 31
6 61
7 127
8 257
9 509
10 1021
11 2053
12 4093
13 8191
14 16381
15 32771
16 65537
17 131071
18 262147
19 524287
20 1048573
21 2097143
22 4194301
23 8388617
24 16777213
25 33554467
26 67108859
27 134217757
28 268435459
29 536870909
30 1073741827
31 2147483647
32 4294967291
33 8589934583

List of values

[2, 2, 3, 7, 17, 31, 61, 127, 257, 509, 1021, 2053, 4093, 8191, 16381, 32771, 65537, 131071, 262147, 524287, 1048573, 2097143, 4194301, 8388617, 16777213, 33554467, 67108859, 134217757, 268435459, 536870909, 1073741827, 2147483647, 4294967291, 8589934583]