login
Decimal expansion of phi truncated to n places.
7

%I #20 Feb 07 2022 12:30:45

%S 1,16,161,1618,16180,161803,1618033,16180339,161803398,1618033988,

%T 16180339887,161803398874,1618033988749,16180339887498,

%U 161803398874989,1618033988749894,16180339887498948,161803398874989484,1618033988749894848,16180339887498948482

%N Decimal expansion of phi truncated to n places.

%H Vincenzo Librandi, <a href="/A011551/b011551.txt">Table of n, a(n) for n = 0..200</a>

%t With[{phi=RealDigits[GoldenRatio,10,50][[1]]},Table[FromDigits[ Take[ phi,n]],{n,20}]] (* _Harvey P. Dale_, Feb 03 2012 *)

%o (PARI) my(phi=quadgen(5)); a(n) = floor(phi*10^n); \\ _Kevin Ryde_, Jun 05 2021

%Y Cf. A001622 (phi), A138116 (triangle of digits), A195607 (fraction), A276198 (next prime).

%Y Palindromes: A135699, A135700.

%K nonn,base

%O 0,2

%A _N. J. A. Sloane_.