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.

A118612 Denominator if the numerator and denominator of the continued fraction rational approximation of sqrt(2) are both prime.

Original entry on oeis.org

2, 5, 29, 44560482149, 13558774610046711780701
Offset: 1

Views

Author

Joshua Zucker, May 08 2006

Keywords

Comments

Next term, if it exists, is bigger than 489 digits (the 1279th convergent to sqrt(2)).

Crossrefs

A086397 has the numerators. This sequence is a subsequence of A000129, A086383 and A101411.

Programs

  • Mathematica
    For[n = 2, n < 1500, n++, a := Join[{1}, Table[2, {i, 2, n}]]; If[PrimeQ[Denominator[FromContinuedFraction[a]]], If[PrimeQ[Numerator[FromContinuedFraction[a]]], Print[Denominator[FromContinuedFraction[a]]]]]] (* Stefan Steinerberger, May 09 2006 *)