|
|
A361566
|
|
a(n) is the denominator of the median of divisors of n.
|
|
4
|
|
|
1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
Except for p = 2 and k = 1, a(p^k) = 1, if p is a prime.
|
|
EXAMPLE
|
a(9) = 1 since the divisors of 9 are 1, 3, 9, and their median is 3.
a(12) = 2 since the divisors of 12 are 1, 2, 3, 4, 6, 12, and their median is 7/2.
|
|
MATHEMATICA
|
a[n_]:=Denominator[Median[Divisors[n]]]; Array[a, 88]
|
|
PROG
|
(PARI) a(n) = my(d=divisors(n), m=#d+1); denominator((d[m\2] + d[m-m\2])/2); \\ Michel Marcus, Mar 16 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,frac
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|