login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A339412 a(n) = floor(x(n)) where x(n) = (frac(x(n-1))+1)*floor(x(n-1)) and x(1) = Pi. 1

%I #30 Dec 05 2020 19:53:15

%S 3,3,4,5,5,7,10,10,13,17,31,35,67,123,223,305,414,822,1550,2224,3273,

%T 4560,7804,14372,15493,20080,40039,44226,71916,130773,183760,316165,

%U 613602,1066559,1138668,1202427,2022144,2251837,2477524,4479491,7192184,11256849

%N a(n) = floor(x(n)) where x(n) = (frac(x(n-1))+1)*floor(x(n-1)) and x(1) = Pi.

%C Inspired by A249270.

%H Alois P. Heinz, <a href="/A339412/b339412.txt">Table of n, a(n) for n = 1..1000</a>

%H James Grime and Brady Haran, <a href="https://youtube.com/watch?v=_gCKX6VMvmU">2.920050977316</a>, Numberphile video, Nov 26 2020.

%p b:= proc(n) option remember; `if`(n=1, Pi,

%p (f-> (frac(f)+1)*floor(f))(b(n-1)))

%p end:

%p a:= n-> floor(b(n)):

%p seq(a(n), n=1..50); # _Alois P. Heinz_, Dec 03 2020

%t Block[{a = {Pi}, $MaxExtraPrecision = 10^3}, Do[AppendTo[a, (FractionalPart[#] + 1) Floor[#]] &@ a[[-1]], 41]; Floor /@ a] (* _Michael De Vlieger_, Dec 04 2020 *)

%o (NARS2000) {(⌊{(⌊⍵)×1+1|⍵}⍣⍵)○1x}¨0,⍳100

%o (PARI) lista(nn) = {localprec(500); my(vx = vector(nn)); vx[1] = Pi; for (n=2, nn, vx[n] = (frac(vx[n-1])+1)*floor(vx[n-1]);); apply(floor, vx);} \\ _Michel Marcus_, Dec 03 2020

%Y Cf. A000796, A249270.

%K nonn

%O 1,1

%A _Michael Turniansky_, Dec 03 2020

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 17 10:16 EDT 2024. Contains 375987 sequences. (Running on oeis4.)