|
|
A175133
|
|
Sum of first a(n) consecutive primes gives a triangular number.
|
|
4
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Numbers k such that Sum_{i=1..k} prime(i) = j*(j+1)/2, where prime(i) is i-th prime, and j an integer.
|
|
LINKS
|
|
|
EXAMPLE
|
k=3 is a term: 2+3+5=10, and 10=4*5/2 is a triangular number, j=4.
k=5 is a term: 2+3+5+7+11=28, and 28=7*8/2 is a triangular number, j=7.
k=217 is a term: 2+3+...+1327=133386, and 133386=516*517/2 is a triangular number, j=516.
|
|
PROG
|
(PARI) isok(n) = ispolygonal(sum(k=1, n, prime(k)), 3); \\ Michel Marcus, Oct 13 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|