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.
%I A348596 #36 Feb 23 2022 10:23:08 %S A348596 0,1,4,2,0,5,3,1,8,6,4,2,0,9,7,5,3,1,12,10,8,6,4,2,0,13,11,9,7,5,3,1, %T A348596 16,14,12,10,8,6,4,2,0,17,15,13,11,9,7,5,3,1,20,18,16,14,12,10,8,6,4, %U A348596 2,0,21,19,17,15,13,11,9,7,5,3,1,24,22,20,18,16 %N A348596 a(n) = A068527(2*n+1). %F A348596 a(n) = (ceiling(sqrt(2*n + 1)))^2 - (2*n + 1). %o A348596 (Python) %o A348596 from math import isqrt %o A348596 def A348596(n): return (isqrt(2*n)+1)**2-2*n-1 # _Chai Wah Wu_, Feb 22 2022 %Y A348596 Cf. A068527, A046092 (position of 0's), A056220 (position of 1's), A350962. %K A348596 nonn,easy %O A348596 0,3 %A A348596 _Ryan Jean_, Feb 22 2022 %E A348596 Edited by _N. J. A. Sloane_, Feb 22 2022