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 A379040 #13 Dec 30 2024 16:07:51 %S A379040 0,1,5,9,13,17,21,33,45,57,65,73,85,93,129,165,173,189,205,217,241, %T A379040 257,273,297,309,325,341,381,441,513,585,645,685,733,765,797,845,857, %U A379040 889,921,945,993,1025,1057,1105,1129,1161,1193,1205,1253,1285,1317,1365,1389 %N A379040 Fixed points in A379015. %C A379040 Such points exist when the non-adjacent form representation of n is palindromic. %H A379040 Wikipedia, <a href="https://en.m.wikipedia.org/wiki/Non-adjacent_form">Non-adjacent form</a>. %o A379040 (Python) %o A379040 def isok(n): %o A379040 E, r = n, 0 %o A379040 while E: %o A379040 if E & 1: %o A379040 Zi = 2 - (E & 3) %o A379040 E -= Zi %o A379040 r += Zi %o A379040 E >>= 1 %o A379040 r <<= 1 %o A379040 return (r >> 1) == n %o A379040 print([n for n in range(0,1400) if isok(n)]) %Y A379040 Cf. A379015. %K A379040 nonn,base %O A379040 1,3 %A A379040 _Darío Clavijo_, Dec 14 2024 %E A379040 Leading 0 added by _Rémy Sigrist_, Dec 28 2024