login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A370356 a(n) is the smallest number such that exactly n numbers k exist with k - a(n) = sopfr(k) + sopfr(a(n)), where sopfr(m) is the sum of the primes dividing m with repetition. 1
4, 1, 6, 22, 46, 526, 1509, 838, 6238, 5667, 20158, 32127, 56697, 82617, 177598, 174718, 384382, 314492, 415789, 498957, 1142398, 1884958, 1713598, 2620798, 2280067, 5209342, 4324316, 5847653, 7796863, 16516489, 6918908, 9979197, 15855829, 24023995, 31600797 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..43
Michael S. Branicky, Terms a(n) <= 10^8 (else -1)
FORMULA
a(n) >= A370352(n).
PROG
(Python)
from sympy import factorint
from itertools import count, islice
from collections import Counter
kcount, kmax = Counter(), 0
def sopfr(n): return sum(p*e for p, e in factorint(n).items())
def f(n):
global kcount, kmax
target = n + sopfr(n)
for k in range(kmax+1, 2*target+5):
kcount[k-sopfr(k)] += 1
kmax += 1
return kcount[target]
def agen(): # generator of terms
adict, n = dict(), 1
for m in count(1):
v = f(m)
if v not in adict: adict[v] = m
while n in adict: yield adict[n]; n += 1
print(list(islice(agen(), 16)))
CROSSREFS
Sequence in context: A140895 A343599 A191714 * A126150 A364509 A349545
KEYWORD
nonn
AUTHOR
Michael S. Branicky, Feb 16 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 2 12:49 EDT 2024. Contains 372196 sequences. (Running on oeis4.)