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.

A382713 Simple continued fraction expansion of sqrt(3/2).

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Apr 08 2025

Keywords

Crossrefs

Essentially the same as A106469, A040003, A010694.

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