login

Revision History for A115343

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Products of 9 distinct primes.
(history; published version)
#51 by Alois P. Heinz at Sat Aug 31 18:04:37 EDT 2024
STATUS

proposed

approved

#50 by Chai Wah Wu at Sat Aug 31 16:48:10 EDT 2024
STATUS

editing

proposed

#49 by Chai Wah Wu at Sat Aug 31 16:48:05 EDT 2024
PROG

return bisection(f) # Chai Wah Wu, Aug 31 2024

#48 by Chai Wah Wu at Sat Aug 31 16:47:45 EDT 2024
PROG

.... y = reduce(mul, (d for d in x))

.... if y < m:

........ A115343.append(y)

(Python)

from math import prod, isqrt

from sympy import primerange, integer_nthroot, primepi

def A115343(n):

def g(x, a, b, c, m): yield from (((d, ) for d in enumerate(primerange(b+1, isqrt(x//c)+1), a+1)) if m==2 else (((a2, b2), )+d for a2, b2 in enumerate(primerange(b+1, integer_nthroot(x//c, m)[0]+1), a+1) for d in g(x, a2, b2, c*b2, m-1)))

def f(x): return int(n+x-sum(primepi(x//prod(c[1] for c in a))-a[-1][0] for a in g(x, 0, 1, 1, 9)))

def bisection(f, kmin=0, kmax=1):

while f(kmax) > kmax: kmax <<= 1

while kmax-kmin > 1:

kmid = kmax+kmin>>1

if f(kmid) <= kmid:

kmax = kmid

else:

kmin = kmid

return kmax

return bisection(f) # Chai Wah Wu, Aug 31 2024

STATUS

approved

editing

#47 by OEIS Server at Mon Aug 31 04:51:05 EDT 2020
LINKS

David A. Corneth, <a href="/A115343/b115343_2.txt">Table of n, a(n) for n = 1..10000</a> (first 1045 terms from Vincenzo Librandi and Chai Wah Wu)

#46 by Joerg Arndt at Mon Aug 31 04:51:05 EDT 2020
STATUS

proposed

approved

Discussion
Mon Aug 31
04:51
OEIS Server: Installed new b-file as b115343.txt.  Old b-file is now b115343_2.txt.
#45 by Joerg Arndt at Mon Aug 31 03:54:56 EDT 2020
STATUS

editing

proposed

#44 by Joerg Arndt at Mon Aug 31 03:54:19 EDT 2020
NAME

Products of 9 distinct primes; also n has exactly 9 distinct prime factors and n is squarefree.

Products of 9 distinct primes.

STATUS

proposed

editing

#43 by David A. Corneth at Sun Aug 30 11:24:58 EDT 2020
STATUS

editing

proposed

Discussion
Sun Aug 30
11:47
Peter Luschny: I think they are very efficient. If this is true, we should keep them. If they bother us we can copy them to separate sheets and upload them.
11:52
David A. Corneth: Yeah I was thinking of having them in a separate file.
#42 by David A. Corneth at Sun Aug 30 10:48:16 EDT 2020
KEYWORD

easy,nonn,easy,changed

Discussion
Sun Aug 30
11:24
David A. Corneth: Do we need the long progs in the program section?