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!)
A030658 1 iff n-th digit of Pi is >= (n+1)st digit. 3
1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n) = if A095916(n) <= 0 then 1 else 0. - Reinhard Zumkeller, Mar 12 2015
LINKS
MATHEMATICA
If[First[#]>=Last[#], 1, 0]&/@Partition[RealDigits[Pi, 10, 130][[1]], 2, 1] (* Harvey P. Dale, Jul 25 2011 *)
PROG
(Haskell)
a030658 = fromEnum . (<= 0) . a095916 -- Reinhard Zumkeller, Mar 12 2015
(Python)
import sympy as sp
length = 100
[int(x>=y) for l in [str(sp.N(sp.pi/10, length))[2:]] for x, y in zip(l[:-1], l[1:])]
CROSSREFS
Sequence in context: A266611 A286752 A320167 * A187950 A112539 A104104
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
More terms from David Radcliffe
STATUS
approved

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 9 02:31 EDT 2024. Contains 375759 sequences. (Running on oeis4.)