login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345977
a(n) is the first term in the n-term sum corresponding to A345976(n).
2
2, 5, 331, 89, 5297, 11149, 2960267, 6189857, 1645492081, 1490842261, 763377367829, 1692363920551
OFFSET
1,1
EXAMPLE
See A345976.
PROG
(Python)
from sympy import nextprime, prime, primefactors, primerange
def a(n):
plst = [p for p in primerange(1, prime(n)+1)]
while len(primefactors(sum(plst))) != n:
plst = plst[1:] + [nextprime(plst[-1])]
return plst[0]
print([a(n) for n in range(1, 7)]) # Michael S. Branicky, Jul 16 2021
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Hugo Pfoertner, Jul 16 2021
EXTENSIONS
a(8)-a(10) from Michael S. Branicky, Jul 16 2021
a(11)-a(12) from Martin Ehrenstein, Jul 17 2021
STATUS
approved