Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A160492
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A160492 a(n) = number of solutions to the equation x_1 + ... + x_n =0 satisfying -n<=x_i<=n (1<=i<=n) +0
1
1, 6, 45, 560, 9795 (list; graph; listen)
OFFSET

1,2

MATHEMATICA

zerocompositionswithzero[p_] := Module[{united = {}, i, zerosums = {}, count = 0}, For[i = 1, i <= p, i = i + 1, united = Union[united, Tuples[Table[x, {x, -p, p}], i]] ]; For[i = 1, i <= Length[united], i = i + 1, If[Sum[united[[i, j]], {j, 1, Length[united[[i]]]}] == 0, zerosums = Append[zerosums, united[[i]]]; count = count + 1; ]; ]; Return[{count, zerosums}]; ];

CROSSREFS

Sequence in context: A084064 A109516 A078865 this_sequence A086721 A145002 A043076

Adjacent sequences: A160489 A160490 A160491 this_sequence A160493 A160494 A160495

KEYWORD

nonn

AUTHOR

Srikanth K S (sriperso(AT)gmail.com), May 15 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 20 16:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research