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 A382713 #18 Apr 14 2025 09:04:56 %S A382713 1,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4, %T A382713 2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4,2,4, %U A382713 2,4,2,4,2,4,2,4,2,4,2,4,2 %N A382713 Simple continued fraction expansion of sqrt(3/2). %H A382713 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1). %p A382713 with(numtheory); cfrac (sqrt(3/2, 70, 'quotients'); %t A382713 PadRight[{1}, 100, {2, 4}] (* _Paolo Xausa_, Apr 14 2025 *) %o A382713 (Python) %o A382713 def A382713(n): return 1<<1+(n&1) if n else 1 # _Chai Wah Wu_, Apr 09 2025 %Y A382713 Cf. A105397, A115754, A142238, A142239. %Y A382713 Essentially the same as A106469, A040003, A010694. %K A382713 nonn,cofr,easy %O A382713 0,2 %A A382713 _N. J. A. Sloane_, Apr 08 2025