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!)
A138345 a(n) = -1 if (n+1)-st decimal digit of 1/Pi is smaller than n-th digit of 1/Pi, 0 if they are equal, 1 if larger. 4

%I #10 Aug 29 2016 18:56:33

%S -1,1,-1,-1,1,-1,0,-1,-1,1,-1,1,1,-1,1,1,-1,1,-1,1,0,-1,1,-1,-1,1,1,

%T -1,1,-1,1,1,-1,-1,1,-1,1,1,1,-1,1,-1,1,-1,1,1,-1,1,-1,1,1,1,-1,-1,1,

%U -1,-1,0,1,1,1,0,-1,0,1,0,1,-1,1,1,-1,-1,1,1,-1,1,-1,-1,1,-1,1,1,-1,1,0,1,-1,-1,1,0,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,1,1

%N a(n) = -1 if (n+1)-st decimal digit of 1/Pi is smaller than n-th digit of 1/Pi, 0 if they are equal, 1 if larger.

%t b = RealDigits[N[1/Pi, 1000]]; b = First[b]; a = {}; Do[k = b[[n + 1]] - b[[n]]; If[k < 0, AppendTo[a, -1], If[k == 0, AppendTo[a, 0], AppendTo[a, 1]]], {n, 1, 999}]; a (*Artur Jasinski*)

%t Which[#[[2]]<#[[1]],-1,#[[2]]==#[[1]],0,True,1]&/@ Partition[ RealDigits[ 1/Pi,10,110][[1]],2,1] (* _Harvey P. Dale_, Aug 09 2013 *)

%Y Cf. A049541, A138344.

%K sign,base

%O 1,1

%A _Artur Jasinski_, Mar 16 2008

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 April 25 07:41 EDT 2024. Contains 371964 sequences. (Running on oeis4.)