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.

A080229 Number of terms in the continued fraction for x, where x is the Golden ratio (phi=(1+sqrt(5))/2) truncated to n decimal digits.

This page as a plain text file.
%I A080229 #11 May 28 2023 18:10:20
%S A080229 1,4,8,12,12,20,18,25,29,31,34,36,39,38,44,53,51,59,60,64,64,77,71,84,
%T A080229 81,81,89,88,92,90,93,96,110,110,114,113,122,124,123,123,140,140,139,
%U A080229 145,155,150,165,165,159,169,170,161,173,172,194,182,187,192,190,196
%N A080229 Number of terms in the continued fraction for x, where x is the Golden ratio (phi=(1+sqrt(5))/2) truncated to n decimal digits.
%e A080229 Golden ratio truncated to 3 decimal places gives 1.618. The continued fraction for 1.618 is [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5] which contains 12 terms, hence a(3)=12.
%t A080229 Table[Length[ContinuedFraction[FromDigits[RealDigits[GoldenRatio,10,n][[1]]]/10^(n-1)]],{n,60}] (* _Harvey P. Dale_, May 28 2023 *)
%Y A080229 Cf. A065019.
%K A080229 base,nonn
%O A080229 0,2
%A A080229 _Benoit Cloitre_, Mar 17 2003