Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Revision History for A036454

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

Showing entries 1-10 | older changes
Prime powers with special exponents: q^(p-1) where p > 2 and q are prime numbers.
(history; published version)
#51 by Alois P. Heinz at Thu Sep 12 14:38:51 EDT 2024
STATUS

reviewed

approved

#50 by Stefano Spezia at Thu Sep 12 14:33:31 EDT 2024
STATUS

proposed

reviewed

#49 by Chai Wah Wu at Thu Sep 12 13:54:43 EDT 2024
STATUS

editing

proposed

#48 by Chai Wah Wu at Thu Sep 12 13:54:34 EDT 2024
PROG

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

#47 by Chai Wah Wu at Thu Sep 12 13:54:24 EDT 2024
PROG

(Python)

from sympy import primepi, integer_nthroot, primerange

def A036454(n):

def f(x): return int(n+x-sum(primepi(integer_nthroot(x, p-1)[0]) for p in primerange(3, x.bit_length()+1)))

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, n, n) # Chai Wah Wu, Sep 12 2024

STATUS

approved

editing

#46 by Joerg Arndt at Sun Jul 10 03:56:01 EDT 2022
STATUS

reviewed

approved

#45 by Michel Marcus at Sun Jul 10 03:51:31 EDT 2022
STATUS

proposed

reviewed

#44 by Amiram Eldar at Sun Jul 10 03:26:41 EDT 2022
STATUS

editing

proposed

#43 by Amiram Eldar at Sun Jul 10 03:16:39 EDT 2022
FORMULA

Sum_{n>=1} 1/a(n) = Sum_{k>=2} P(prime(k)-1) = 0.54756961912815344341..., where P is the prime zeta function. - Amiram Eldar, Jul 10 2022

STATUS

approved

editing

#42 by Joerg Arndt at Mon Jul 04 04:38:30 EDT 2022
STATUS

reviewed

approved