[go: up one dir, main page]

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”).

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

Showing entries 1-10 | older changes
11-smooth numbers: numbers whose prime divisors are all <= 11.
(history; published version)
#65 by Alois P. Heinz at Mon Sep 16 14:45:27 EDT 2024
STATUS

reviewed

approved

#64 by Stefano Spezia at Mon Sep 16 14:44:25 EDT 2024
STATUS

proposed

reviewed

#63 by Chai Wah Wu at Mon Sep 16 14:40:16 EDT 2024
STATUS

editing

proposed

#62 by Chai Wah Wu at Mon Sep 16 14:38:28 EDT 2024
PROG

return bisection(f, n, n) # Chai Wah Wu, Sep 16 2024

#61 by Chai Wah Wu at Mon Sep 16 14:38:10 EDT 2024
PROG

(Python)

from sympy import integer_log, prevprime

def A051038(n):

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

def g(x, m): return sum((x//3**i).bit_length() for i in range(integer_log(x, 3)[0]+1)) if m==3 else sum(g(x//(m**i), prevprime(m))for i in range(integer_log(x, m)[0]+1))

def f(x): return n+x-g(x, 11)

return bisection(f, n, n) # Chai Wah Wu, Sep 16 2024

STATUS

approved

editing

#60 by Michael De Vlieger at Sun Nov 20 18:30:44 EST 2022
STATUS

reviewed

approved

#59 by Michel Marcus at Sun Nov 20 16:48:18 EST 2022
STATUS

proposed

reviewed

#58 by Michael S. Branicky at Sun Nov 20 16:33:53 EST 2022
STATUS

editing

proposed

#57 by Michael S. Branicky at Sun Nov 20 16:33:50 EST 2022
PROG

print(list(islice(agen(), 6567))) # Michael S. Branicky, Nov 20 2022

#56 by Michael S. Branicky at Sun Nov 20 16:24:08 EST 2022
PROG

(Python)

import heapq

from itertools import islice

from sympy import primerange

def agen(p=11): # generate all p-smooth terms

v, oldv, h, psmooth_primes, = 1, 0, [1], list(primerange(1, p+1))

while True:

v = heapq.heappop(h)

if v != oldv:

yield v

oldv = v

for p in psmooth_primes:

heapq.heappush(h, v*p)

print(list(islice(agen(), 65))) # Michael S. Branicky, Nov 20 2022

STATUS

approved

editing