login
A328394
Maximal digit value in primorial base expansion of A276087(n): a(n) = A328114(A276087(n)).
7
1, 1, 1, 2, 1, 4, 3, 2, 5, 1, 5, 4, 6, 3, 3, 7, 7, 4, 7, 5, 16, 6, 12, 27, 21, 35, 28, 23, 31, 28, 2, 2, 4, 5, 4, 5, 4, 10, 9, 2, 11, 6, 7, 10, 12, 7, 30, 6, 10, 15, 14, 7, 23, 37, 26, 32, 28, 33, 24, 28, 8, 3, 17, 11, 3, 5, 6, 11, 7, 12, 30, 21, 28, 15, 28, 11, 24, 30, 14, 16, 43, 17, 52, 26, 19, 29, 27, 33, 46, 27, 12, 15, 28, 28, 24, 27, 11, 20, 16, 20
OFFSET
0,4
FORMULA
a(n) = A328389(A276086(n)) = A328114(A276087(n)) = A051903(A328403(n)).
MATHEMATICA
Block[{b = MixedRadix[Reverse@ Prime@ Range@ 120], f}, f[n_] := Times @@ Power @@@ # &@ Transpose@ {Prime@ Range@ Length@ #, Reverse@ #} &@ IntegerDigits[n, b]; Array[Max@ IntegerDigits[Nest[f, #, 2], b] &, 100, 0]] (* Michael De Vlieger, Oct 15 2019 *)
PROG
(PARI)
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
A328114(n) = { my(s=0, p=2); while(n, s = max(s, (n%p)); n = n\p; p = nextprime(1+p)); (s); };
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 15 2019
STATUS
approved