login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Cf. A001221, A027748, A323171, A361565, A361631 (denominator), A361632 (with multiplicity).
Sequence in context: A086294 A361632 A075860 * A323171 A008472 A318675
KEYWORD
nonn,frac
AUTHOR
Stefano Spezia, Mar 18 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)