|
|
A361630
|
|
a(n) is the numerator of the median of the distinct prime factors of n.
|
|
3
|
|
|
2, 3, 2, 5, 5, 7, 2, 3, 7, 11, 5, 13, 9, 4, 2, 17, 5, 19, 7, 5, 13, 23, 5, 5, 15, 3, 9, 29, 3, 31, 2, 7, 19, 6, 5, 37, 21, 8, 7, 41, 3, 43, 13, 4, 25, 47, 5, 7, 7, 10, 15, 53, 5, 8, 9, 11, 31, 59, 3, 61, 33, 5, 2, 9, 3, 67, 19, 13, 5, 71, 5, 73, 39, 4, 21, 9, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,1
|
|
LINKS
|
|
|
FORMULA
|
For p a prime, a(p^k) = p.
|
|
EXAMPLE
|
a(12) = 5 since the distinct prime factors of 12 are 2 and 3, of median equal to 5/2.
a(30) = 3 since the distinct prime factors of 30 are 2, 3, and 5, of median equal to 3.
|
|
MATHEMATICA
|
a[n_]:=Numerator[Median[FactorInteger[n][[All, 1]]]]; Array[a, 77, 2]
|
|
PROG
|
(PARI) a(n)=my(f=factor(n)[, 1]~, i=length(f)); numerator(if(i%2, f[i\2+1], (f[i/2]+f[i/2+1])/2)) \\ Winston de Greef, Mar 23 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,frac
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|