OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
Will Nicholes, List of Prime Signatures
MATHEMATICA
f[n_]:=Sort[Last/@FactorInteger[n]]=={1, 3, 4}; Select[Range[30000], f]
PROG
(PARI) list(lim)=my(v=List(), t1, t2); forprime(p=2, (lim\24)^(1/4), t1=p^4; forprime(q=2, (lim\t1)^(1/3), if(p==q, next); t2=t1*q^3; forprime(r=2, lim\t2, if(p==r||q==r, next); listput(v, t2*r)))); vecsort(Vec(v)) \\ Charles R Greathouse IV, Jul 24 2011
(Python)
from sympy import primepi, primerange, integer_nthroot
def A179698(n):
def bisection(f, kmin=0, kmax=1):
while f(kmax) > kmax: kmax <<= 1
kmin = kmax >> 1
while kmax-kmin > 1:
kmid = kmax+kmin>>1
if f(kmid) <= kmid:
kmax = kmid
else:
kmin = kmid
return kmax
def f(x): return n+x-sum(primepi(x//(p**4*q**3)) for p in primerange(integer_nthroot(x, 4)[0]+1) for q in primerange(integer_nthroot(x//p**4, 3)[0]+1))+sum(primepi(integer_nthroot(x//p**4, 4)[0]) for p in primerange(integer_nthroot(x, 4)[0]+1))+sum(primepi(integer_nthroot(x//p**5, 3)[0]) for p in primerange(integer_nthroot(x, 5)[0]+1))+sum(primepi(x//p**7) for p in primerange(integer_nthroot(x, 7)[0]+1))-(primepi(integer_nthroot(x, 8)[0])<<1)
return bisection(f, n, n) # Chai Wah Wu, Mar 28 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jul 24 2010
STATUS
approved
