Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A034297
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A034297 Number of ordered positive integer solutions (m_1, m_2, ..., m_k) (for some k) to Sum_{i=1..k} m_i=n with |m_i-m_{i-1}| <= 1 for i = 2 ... k. +0
4
1, 2, 4, 6, 11, 17, 29, 47, 78, 130, 215, 357, 595, 990, 1651, 2748, 4584, 7643, 12744, 21256, 35451, 59133, 98636, 164531, 274463, 457837, 763746, 1274060, 2125356, 3545491, 5914545, 9866602, 16459421, 27457549, 45804648, 76411272, 127469285 (list; graph; listen)
OFFSET

1,2

PROGRAM

(PARI) T = matrix(70, 70, i, j, -1); doIt(last, left) = local(c); c = T[last, left]; if (c == -1, c = 0; for (i = max(1, last - 1), last + 1, c += b(i, left - i)); T[last, left] = c); c; b(last, left) = if (left == 0, return(1)); if (left < 0, return(0)); doIt(last, left); a(n) = sum (i = 1, n, b(i, n - i)); (Wasserman)

CROSSREFS

Cf. A003116, A034296.

Sequence in context: A115315 A004698 A014217 this_sequence A026636 A026658 A138688

Adjacent sequences: A034294 A034295 A034296 this_sequence A034298 A034299 A034300

KEYWORD

nonn

AUTHOR

Erich Friedman (erich.friedman(AT)stetson.edu)

EXTENSIONS

More terms from David Wasserman (wasserma(AT)spawar.navy.mil), Feb 02 2006

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 July 6 17:22 EDT 2008. Contains 140988 sequences.


AT&T Labs Research