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!)
A063867 Number of solutions to +- 1 +- 2 +- 3 +- ... +- n = 0 or +- 1. 8
1, 2, 2, 2, 2, 6, 10, 8, 14, 46, 80, 70, 124, 442, 794, 722, 1314, 4820, 8882, 8220, 15272, 56920, 106444, 99820, 187692, 707486, 1336546, 1265204, 2399784, 9119656, 17358560, 16547220, 31592878, 120801376, 231266520, 221653776 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
Ray Chandler, Table of n, a(n) for n = 0..3339 (terms < 10^1000; first 101 terms from T. D. Noe)
Steven R. Finch, Signum equations and extremal coefficients, February 7, 2009. [Cached copy, with permission of the author]
FORMULA
a(n) = A063865(n) + 2*A063866(n).
MATHEMATICA
f[n_, s_] := f[n, s]=Which[n==0, If[s==0, 1, 0], Abs[s]>(n*(n+1))/2, 0, True, f[ n-1, s-n]+f[n-1, s+n]]; a[n_] := f[n, 0]+2f[n, 1]
CROSSREFS
Sequence in context: A116564 A323442 A078014 * A024723 A035470 A061292
KEYWORD
nonn,easy,nice
AUTHOR
N. J. A. Sloane, following a suggestion by J. H. Conway, Aug 27 2001
EXTENSIONS
More terms from Dean Hickerson and Vladeta Jovovic, Aug 28 2001
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 April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)