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.

A269251 a(n) = smallest prime in the sequence s(k) = n*s(k-1) - s(k-2), with s(0) = 1, s(1) = n - 1 (or a(n) = -1 if no such prime exists).

Table of values

n a(n)
1 -1
2 -1
3 2
4 3
5 19
6 5
7 41
8 7
9 71
10 89
11 109
12 11
13 2003
14 13
15 3121
16 239
17 271
18 17
19 729962708557509701
20 19
21 419
22 461
23 11593
24 23
25 599
26 11356201
27 701
28 11546481261621528160662473705515857458665002781273993
29 811
30 29
31 929

List of values

[-1, -1, 2, 3, 19, 5, 41, 7, 71, 89, 109, 11, 2003, 13, 3121, 239, 271, 17, 729962708557509701, 19, 419, 461, 11593, 23, 599, 11356201, 701, 11546481261621528160662473705515857458665002781273993, 811, 29, 929]