reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) {M95874=Map(); A095874(n, k)=if(mapisdefined(M95874, n, &k), k, isprimepower(n), mapput(M95874, n, k=sum(i=1, exponent(n), primepi(sqrtnint(n, i)))+1); k, n==1)} \\ Variant with memoization, possibly useful to compute A097621, A344826 and related. One may omit "isprimepower(n), " (possibly requiring factorization) and ", n==1" if n is known to be a power of a prime, i.e., to get a left inverse for A000961. - _M. F. Hasler_, Jun 15 2021
{M95874=Map(); A095874(n, k)=if(mapisdefined(M95874, n, &k), k, isprimepower(n), mapput(M95874, n, k=sum(i=1, exponent(n), primepi(sqrtnint(n, i)))+1); k, n==1)} \\ Variant with memoization, possibly useful to compute A097621, A344826 and related. "isprimepower(n), " (possibly requiring factorization) and ", n==1" can be omitted if n is known to be a power of a prime, i.e., to get a left inverse for A000961. - M. F. Hasler, Jun 15 2021
proposed
editing
editing
proposed
{M95874=Map(); A095874(n, k)=if(mapisdefined(M95874, n, &k), k, isprimepower(n), mapput(M95874, n, k=sum(i=1, exponent(n), primepi(sqrtnint(n, i)))+1); k, n==1)} \\ Variant with memoization, possibly useful to compute A097621, A344826 and related. "isprimepower(n), " (possibly requiring factorization) and ", n==1" can be omitted if n is known to be a prime power, of a prime, i.e., to get a left inverse for A000961. - M. F. Hasler, Jun 15 2021
proposed
editing
editing
proposed
editing
proposed
a(n) = k if n = A000961(k) (powers of primes), a(n) = 0 elseotherwise.
proposed
editing