A382713 Simple continued fraction expansion of sqrt(3/2).
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, 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, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Crossrefs
Programs
-
Maple
with(numtheory); cfrac (sqrt(3/2, 70, 'quotients');
-
Mathematica
PadRight[{1}, 100, {2, 4}] (* Paolo Xausa, Apr 14 2025 *)
-
Python
def A382713(n): return 1<<1+(n&1) if n else 1 # Chai Wah Wu, Apr 09 2025