OFFSET
1
COMMENTS
LINKS
FORMULA
PROG
(PARI)
A034386(n) = prod(i=1, primepi(n), prime(i));
A328572(n) = { my(m=1, p=2); while(n, if(n%p, m *= p^((n%p)-1)); n = n\p; p = nextprime(1+p)); (m); };
(PARI)
\\ Alternatively:
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
(PARI)
is_in_A276156(n) = { my(p=2); while(n, if((n%p)>1, return(0)); n = n\p; p = nextprime(1+p)); (1); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 04 2022
STATUS
approved