OFFSET
1,1
COMMENTS
a(n) = if A095916(n) <= 0 then 1 else 0. - Reinhard Zumkeller, Mar 12 2015
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
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:])]
# Nicholas Stefan Georgescu, Feb 27 2023
CROSSREFS
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
More terms from David Radcliffe
STATUS
approved