login
A364798
Triangular numbers that for some k >= 1 are also the sum of the first k noncomposite numbers (1 together with the primes).
1
1, 3, 6, 78, 448516225, 448254714630193471
OFFSET
1,2
COMMENTS
a(n) = A000217(i) = A014284(j) for appropriate i, j.
EXAMPLE
78 is a term because 78 = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 = 1 + 2 + 3 + 5 + 7 + 11 + 13 + 17 + 19.
MATHEMATICA
Select[Accumulate[Join[{1}, Prime[Range[10000]]]], IntegerQ[Sqrt[8 # + 1]] &]
CROSSREFS
Intersection of A000217 and A014284.
Sequence in context: A023174 A350992 A213138 * A349875 A376934 A331403
KEYWORD
nonn,more
AUTHOR
Ilya Gutkovskiy, Aug 08 2023
EXTENSIONS
a(6) from Jinyuan Wang, Aug 09 2023
STATUS
approved