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!)
A368280 a(0) = 0, a(1) = 1, for n >= 2, a(n) = a(n - 1) - 9*floor(median(a)) + floor(mean(a)). Median(a) and mean(a) are respectively the median and mean of all previous terms. 1
0, 1, 1, -8, -10, -14, 17, 15, 15, 7, 0, -7, -6, -6, -6, -7, 19, 19, 20, 22, 25, 20, 16, 12, -18, -22, -27, -34, -33, -33, -34, -36, -12, 38, 63, 62, 63, 66, 70, 67, 66, 66, 40, -12, -37, -37, -38, -40, -34, -28, -23, -19, 12, 16, 20, 25, 30, 26, 23, 20, -10, -13, -16 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Empirically the system a(0) = 0, a(1) = 1, a(n) = a(n - 1) + A*floor(median(a)) + B*floor(mean(a)) shows five different forms of behavior which are specified by the parameters A and B: exponential growth (e.g., A = 1, B = 1), exponential decline (e.g, A = -2, B = 3), periodic (e.g., A = -4, B = 3), quasi-periodic (e.g., A = -9, B = -9), and chaotic (e.g., A = 2, B = -1). Trials were computed for A, B from [-20, 20] and n from [0, 4*10^4].
LINKS
FORMULA
a(n) = 0 for n >= 54698. - Thomas Scheuerle, Dec 19 2023
EXAMPLE
a(0) = 0; a(1) = 1; a(2) = 1 - 9*floor(median(0,1)) + floor(mean(0,1)) = 1.
PROG
(MATLAB)
function a = A368280( max_n )
a = [0 1];
for n = 3:max_n
a(n) = a(n-1) - 9*floor(median(a)) + floor(mean(a));
end
end % Thomas Scheuerle, Dec 19 2023
CROSSREFS
Sequence in context: A060864 A087695 A322998 * A262708 A134321 A326386
KEYWORD
sign
AUTHOR
Ctibor O. Zizka, Dec 19 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 July 13 15:08 EDT 2024. Contains 374284 sequences. (Running on oeis4.)