OFFSET
1,2
COMMENTS
The factor 2 in 2*k^2 in the definition is to ensure that median and median absolute deviation are always integers.
Conjecture: a(n) ~ (sqrt(3)/4) * n^2.
The conjecture is true. See links. - Sela Fried, Jul 17 2024.
LINKS
Sela Fried, Median absolute deviation, 2024.
Sela Fried, Proofs of some Conjectures from the OEIS, arXiv:2410.07237 [math.NT], 2024. See p. 3.
Wikipedia, Median absolute deviation
EXAMPLE
For n = 5 the sample is {2*k^2 | k=1..5} = {2, 8, 18, 32, 50}, its median is 18, the absolute deviations from the median are {16, 10, 0, 14, 32}, the median of the absolute deviations is 14, so a(5) = 14.
For n = 6 the sample is {2*k^2 | k=1..6} = {2, 8, 18, 32, 50, 72}, its median is (18+32)/2 = 25, the absolute deviations from the median are {23, 17, 7, 7, 25, 47}, the median of the absolute deviations is (17+23)/2 = 20, so a(6) = 20.
MATHEMATICA
Table[MedianDeviation[Table[2 k^2, {k, n}]], {n, 56}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Reshetnikov, Jun 13 2021
STATUS
approved