Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A097278
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A097278 Triangle read by rows: T(n, k) = number of permutations <p(1), p(2), ..., p(n)> of <1, 2, ..., n> that end with k, such that p(k) > p(k-1) when k is composite, and p(k) < p(k-1) when k is prime. (n > 0, 1 <= k <= n). +0
2
1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 3, 3, 2, 1, 0, 0, 3, 6, 8, 9, 9, 35, 35, 32, 26, 18, 9, 0, 0, 35, 70, 102, 128, 146, 155, 155, 0, 0, 35, 105, 207, 335, 481, 636, 791, 0, 0, 0, 35, 140, 347, 682, 1163, 1799, 2590, 6756, 6756, 6756, 6756, 6721, 6581, 6234, 5552, 4389, 2590, 0 (list; table; graph; listen)
OFFSET

1,11

FORMULA

T(1, 1) = 1, T(n, k) = sum(i = k..(n-1), T(n-1, i)) if n is prime, T(n, k) = sum(i = 1..(k-1), T(n-1, i)) if n is composite.

EXAMPLE

T(5, 2) = 3: the 3 permutations are <4,3,1,5,2>, <5,3,1,4,2>, and <5,4,1,3,2>.

CROSSREFS

Cf. A097277.

Sequence in context: A117252 A016037 A106449 this_sequence A056223 A100013 A065744

Adjacent sequences: A097275 A097276 A097277 this_sequence A097279 A097280 A097281

KEYWORD

easy,nonn,tabl,less

AUTHOR

David Wasserman (wasserma(AT)spawar.navy.mil), Aug 05 2004

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 August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research