OFFSET
1,1
MATHEMATICA
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*)
Which[#[[2]]<#[[1]], -1, #[[2]]==#[[1]], 0, True, 1]&/@ Partition[ RealDigits[ 1/Pi, 10, 110][[1]], 2, 1] (* Harvey P. Dale, Aug 09 2013 *)
CROSSREFS
KEYWORD
sign,base
AUTHOR
Artur Jasinski, Mar 16 2008
STATUS
approved