cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A348248 Let d = A307720(n) - A307720(n-1); a(n) = 0 if d = 0; a(n) = 1 if d > 0; a(n) = 2 if d < 0.

This page as a plain text file.
%I A348248 #65 Mar 22 2025 04:39:54
%S A348248 0,1,2,1,2,1,2,0,0,0,0,1,2,1,2,1,0,0,0,0,0,0,0,0,0,1,2,1,2,1,2,1,2,1,
%T A348248 2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,
%U A348248 2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2
%N A348248 Let d = A307720(n) - A307720(n-1); a(n) = 0 if d = 0; a(n) = 1 if d > 0; a(n) = 2 if d < 0.
%C A348248 If one looks at the graph of A307720 (that entry has a number of versions of this graph besides the one that appears when the "graph" button is clicked), one sees that initially A307720(n) is usually greater than A307720(n-1) if n is odd.
%C A348248 Think of A307720 as a piano score in which normally the right hand (n = 2*i+1) is to the right of the left hand (n = 2*i).
%C A348248 However, as can be seen in _William Cheswick_'s colored plots, sometimes the right and left hands swap. In these plots, the right-hand points (n odd) are blue and the left-points (n even) are red.
%C A348248 A run of terms 121212... in the present sequence is a normal sequence of notes left, right, left, right, ..., where blue is on top.
%C A348248 A run 212121... indicates that the hands have been swapped (red is on top).
%C A348248 A run 000000... indicates that both hands are playing the same note (red and blue are at the same level).
%C A348248 The purpose of the present sequence and related sequences is to study when the hands swap. At present there is no explanation for when this happens.
%C A348248 The sequence of pictures suggests that there will be infinitely many occasions when the hands swap. The upper color in the picture will alternate infinitely often between red and blue, with longer and longer runs before the upper color changes.
%H A348248 William Cheswick, <a href="/A348248/a348248_2.png">Colored plot of first 200 terms of A307720</a> (See Comments for explanation of colors in these pictures)
%H A348248 William Cheswick, <a href="/A348248/a348248_3.png">Colored plot of first 1000 terms of A307720</a>
%H A348248 William Cheswick, <a href="/A348248/a348248_4.png">Colored plot of first 10000 terms of A307720</a>
%H A348248 William Cheswick, <a href="/A348248/a348248.png">Colored plot of first 10^5 terms of A307720</a>
%H A348248 William Cheswick, <a href="/A348248/a348248_1.png">Colored plot of first 10^6 terms of A307720</a>
%H A348248 Rémy Sigrist, <a href="/A307720/a307720.png">Scatterplot of the first 10000000 terms of A307720</a>
%H A348248 Chai Wah Wu, <a href="/A348446/a348446_2.png">Scatterplot of the first 100 million terms of A348446</a> [Shows how the lead changes between the left and right hands. The color scheme here is different from that in _William Cheswick_'s pictures.]
%Y A348248 Cf. A307720, A307730, A348446, A348459.
%K A348248 nonn
%O A348248 2,3
%A A348248 _N. J. A. Sloane_, Oct 20 2021