[go: up one dir, main page]

login
A054249
Alternately subtract and add 1 to digits in decimal expansion of Pi.
0
2, 2, 3, 2, 4, 10, 1, 7, 4, 4, 4, 9, 8, 8, 8, 4, 1, 4, 7, 5, 5, 3, 5, 5, 2, 4, 7, 4, 1, 8, 8, 6, -1, 3, 7, 9, 3, 2, 8, 8, 0, 7, 8, 4, 8, 10, 2, 8, 4, 2, -1, 6, 7, 3, -1, 10, 6, 5, 8, 5, 3, 6, 8, 3, 2, 1, 6, 9, 0, 7, 3, 1, 5, 3, 7, 7, 1, 1, 7, 10, 8, 9, 5, 3, 7, 1, 2, 5, 7, 3, 4, 4, 3, 3, 0, 2, 6, 1, 5, 8, 8
OFFSET
1,1
EXAMPLE
a(1)= 3 - 1 = 2, a(2)= 1 + 1 = 2, a(3) = 4 - 1 = 3
MATHEMATICA
Total/@Partition[Riffle[RealDigits[Pi, 10, 120][[1]], {-1, 1}, {2, -1, 2}], 2] (* Harvey P. Dale, Jan 20 2016 *)
CROSSREFS
Cf. A000796.
Sequence in context: A053023 A153725 A102247 * A160273 A141822 A033099
KEYWORD
easy,sign,base
AUTHOR
Anonymous, Feb 13 2000
EXTENSIONS
More terms from James A. Sellers, Feb 22 2000
STATUS
approved