OFFSET
2,2
COMMENTS
T(m, 2) = max{T(m, k): k >= 1} for m >= 100. - Ya-Ping Lu, Dec 25 2024
LINKS
Lars Blomberg, Table of n, a(n) for n = 2..9997 (the first 703 rows)
EXAMPLE
Triangle begins:
1,
2,
2, 1,
3, 1, <- gaps in 3,5,7,11,13 are 2 (3 times), 4 (once)
3, 2,
4, 2,
4, 3,
4, 3, 1,
5, 3, 1,
5, 3, 2,
5, 4, 2,
6, 4, 2,
6, 5, 2,
6, 5, 3,
6, 5, 4,
7, 5, 4,
7, 5, 5,
7, 6, 5,
8, 6, 5,
...
PROG
(Python)
from sympy import nextprime; p = 3; L = []
for n in range(2, 32):
np = nextprime(p); k = (np - p)//2
if len(L) < k: {L.append(0) for i in range(len(L), k-1)}; L.append(1)
else: L[k-1] += 1
print(*L, sep =", ", end = ", "); p = np # Ya-Ping Lu, Dec 25 2024
CROSSREFS
KEYWORD
AUTHOR
N. J. A. Sloane, Nov 06 2016
STATUS
approved