|
|
A081810
|
|
If n = p_1^e_1 * ... * p_k^e_k, p_1 < ... < p_k primes, then a(n) = Max{ p_i*e_i }.
|
|
3
|
|
|
0, 2, 3, 4, 5, 3, 7, 6, 6, 5, 11, 4, 13, 7, 5, 8, 17, 6, 19, 5, 7, 11, 23, 6, 10, 13, 9, 7, 29, 5, 31, 10, 11, 17, 7, 6, 37, 19, 13, 6, 41, 7, 43, 11, 6, 23, 47, 8, 14, 10, 17, 13, 53, 9, 11, 7, 19, 29, 59, 5, 61, 31, 7, 12, 13, 11, 67, 17, 23, 7, 71, 6, 73, 37, 10, 19, 11, 13, 79, 8, 12
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
If x and y are coprime then a(x*y) = max(a(x),a(y)). - Robert Israel, Nov 27 2017
|
|
LINKS
|
|
|
MAPLE
|
f:= proc(n) max(seq(convert(t, `*`), t=ifactors(n)[2])) end proc:
f(1):= 0:
|
|
MATHEMATICA
|
a[n_] := Module[{f = FactorInteger[n]}, Max[f[[All, 1]] f[[All, 2]]]];
|
|
PROG
|
(PARI) a(n)=local(f); if(n==1, 0, f=factor(n); vecmax(vector(matsize(f)[1], k, f[k, 1]*f[k, 2])))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|