The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A081112 Let s(x)=floor(Pi*x); sequence gives the least k such that n divides s^k(n) where s^k(x) denotes s(s(s..s(x))..) k times, or 0 if no such k exists. 0

%I

%S 1,1,1,1,1,1,1,7,7,5,12,20,11,54,10,15,20,19,43,30,18,5,55,25,63,28,

%T 21,29,15,22,5,85,18,34,41,81,16,14,13,15,32,49,22,5,165,10,25,9,84,

%U 99,18,129,10,41,146,35,9,39,50,40,16,59,63,65,19,258,136,115,11,15,169,26

%N Let s(x)=floor(Pi*x); sequence gives the least k such that n divides s^k(n) where s^k(x) denotes s(s(s..s(x))..) k times, or 0 if no such k exists.

%o (PARI) a(n)=if(n<0,0,s=n; c=1; while(floor(s*Pi)%n>0,s=floor(s*Pi); c++); c)

%K nonn

%O 1,8

%A _Benoit Cloitre_, Apr 15 2003

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

Last modified December 5 23:38 EST 2021. Contains 349558 sequences. (Running on oeis4.)