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.

A110021 Final term of the simple continued fraction for prime(n+1)/prime(n).

This page as a plain text file.
%I A110021 #15 Jun 26 2025 07:59:13
%S A110021 2,2,2,3,2,4,2,3,5,2,6,4,2,3,5,5,2,6,3,2,6,3,5,8,4,2,3,2,4,14,3,5,2,9,
%T A110021 2,6,6,3,5,5,2,10,2,4,2,2,2,3,2,4,5,2,10,5,5,5,2,6,4,2,3,13,3,2,4,4,6,
%U A110021 3,2,4,5,7,6,6,3,5,2,4,8,9,2,10,2,6,3,5,8,4,2,3,11,7,3,2,3,5,2,2,18,6
%N A110021 Final term of the simple continued fraction for prime(n+1)/prime(n).
%H A110021 Amiram Eldar, <a href="/A110021/b110021.txt">Table of n, a(n) for n = 1..10000</a>
%e A110021 Prime(6)/prime(5) = 13/11 = 1 + 1/(5 + 1/2). So a(5) = 2.
%t A110021 Table[Last[ContinuedFraction[Prime[n + 1]/Prime[n]]], {n, 100}] (* _Ray Chandler_, Sep 18 2005 *)
%Y A110021 Cf. A071866, A109374, A112323, A112324, A112768.
%K A110021 nonn
%O A110021 1,1
%A A110021 _Leroy Quet_, Sep 03 2005
%E A110021 Extended by _Ray Chandler_, Sep 18 2005