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.

A083035 a(n) = floor(sqrt(2)*n)-2*floor(n/sqrt(2)).

This page as a plain text file.
%I A083035 #31 Dec 10 2022 16:52:17
%S A083035 1,0,0,1,1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,
%T A083035 1,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0,1,1,0,0,
%U A083035 1,0,0,1,1,0,0,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,1,0,0,1,1,0,0,1,0,0,1,1,0
%N A083035 a(n) = floor(sqrt(2)*n)-2*floor(n/sqrt(2)).
%H A083035 Charles R Greathouse IV, <a href="/A083035/b083035.txt">Table of n, a(n) for n = 1..10000</a>
%H A083035 Benoit Cloitre, <a href="/A083035/a083035.png">Fractal walk starting at (0,0) with step of unit length turning right if a(n)=0 and left otherwise for n=1 up to 10^6</a>
%H A083035 Sela Fried, <a href="https://1827e8b7-4851-4c57-a858-cf14462e53e9.filesusr.com/ugd/cab532_eb2971323b9a48cb862963a8835db4ee.pdf">The beauty of Beatty sequences</a>.
%F A083035 a(n) = floor(n*sqrt(2)) mod 2. - _T. D. Noe_, Oct 11 2006
%t A083035 Table[Floor[Sqrt[2]n]-2Floor[n/Sqrt[2]],{n,120}] (* _Harvey P. Dale_, Mar 08 2017 *)
%t A083035 Table[Mod[Floor[Sqrt[2] n], 2], {n, 120}] (* _IWABUCHI Yu(u)ki_, May 01 2020 *)
%o A083035 (PARI) a(n)=sqrtint(2*n^2)%2 \\ _Charles R Greathouse IV_, Oct 14 2013
%Y A083035 Cf. A083036, A083037, A083038, A001951 (floor(n*sqrt(2))).
%K A083035 nonn,easy
%O A083035 1,1
%A A083035 _Benoit Cloitre_, Apr 17 2003