|
| |
|
|
A123737
|
|
Partial sums of (-1)^floor(n*sqrt(2)).
|
|
5
| |
|
|
-1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, 0, 1, 0, -1, 0, 1, 0, 1, 2, 1, 0, 1, 0, -1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, -2, -1, -2, -3, -2, -1, -2, -1, 0, -1, -2, -1, 0, -1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, 0, 1, 0, -1, 0, 1, 0, 1, 2, 1, 0, 1, 0, -1, 0, 1, 0, -1, 0, -1, -2, -1, 0, -1, 0, 1, 0, -1, 0, 1, 0
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,8
|
|
|
REFERENCES
| Kevin O'Bryant, Bruce Reznick and Monika Serbinowska, Almost alternating sums, Amer. Math. Monthly, Vol. 113 (October 2006), 673-688.
|
|
|
LINKS
| T. D. Noe, Table of n, a(n) for n=1..10000
|
|
|
MATHEMATICA
| Rest[FoldList[Plus, 0, (-1)^Floor[Sqrt[2]*Range[120]]]]
Accumulate[(-1)^Floor[Range[120]Sqrt[2]]] (* From Harvey P. Dale, Jan 16 2012 *)
|
|
|
CROSSREFS
| Cf. A123724 (sum for 2^(1/3)), A123738 (sum for pi), A123739 (sum for e).
Sequence in context: A080733 A080732 A088568 * A083037 A072927 A120086
Adjacent sequences: A123734 A123735 A123736 * A123738 A123739 A123740
|
|
|
KEYWORD
| easy,sign
|
|
|
AUTHOR
| T. D. Noe (noe(AT)sspectra.com), Oct 11 2006
|
| |
|
|