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

A328322
Maximal digit value used when A328316(n) is written in primorial base; maximal prime exponent in A328316(1+n).
7
0, 1, 1, 1, 1, 2, 3, 4, 7, 49, 430, 74814
OFFSET
0,6
FORMULA
a(n) = A328114(A328316(n)).
a(n) = A051903(A328316(1+n)).
PROG
(PARI)
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
A328316(n) = if(!n, 0, A276086(A328316(n-1)));
A328114(n) = { my(s=0, p=2); while(n, s = max(s, (n%p)); n = n\p; p = nextprime(1+p)); (s); };
\\ Or alternatively as, more slowly:
A051903(n) = if((1==n), 0, vecmax(factor(n)[, 2]));
A328322(n) = A051903(A328316(1+n));
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 14 2019
STATUS
approved