Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A025581
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A025581 Triangle T(n,k) = n-k, n >= 0, 0<=k<=k. Integers m to 0 followed by integers m+1 to 0 etc. +0
51
0, 1, 0, 2, 1, 0, 3, 2, 1, 0, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3 (list; table; graph; listen)
OFFSET

0,4

COMMENT

The PARI functions t1, t2 can be used to read a square array T(n,k) (n >= 0, k >= 0) by antidiagonals upwards: n -> T(t1(n), t2(n)). - Michael Somos, Aug 23, 2002

LINKS

M. Somos, Sequences used for indexing triangular or square arrays

FORMULA

a(n) = (((trinv(n)-1)*(((1/2)*trinv(n))+1))-n) # Cf. A002262

G.f.: y / [(1-x)^2 * (1-xy) ]. - R. Stephan, Jan 25 2005

EXAMPLE

0; 1,0; 2,1,0; 3,2,1,0; 4,3,2,1,0; ...

MAPLE

A025581 := n -> binomial(1+floor((1/2)+sqrt(2*(1+n))), 2) - (n+1);

PROGRAM

(PARI) a(n)=binomial(1+floor(1/2+sqrt(2+2*n)), 2)-(n+1) /* produces a(n) */

(PARI) t1(n)=binomial(floor(3/2+sqrt(2+2*n)), 2)-(n+1) /* A025581 */

(PARI) t2(n)=n-binomial(floor(1/2+sqrt(2+2*n)), 2) /* A002262 */

CROSSREFS

A004736(n+1)=1+A025581(n)

Cf. A025669, A025676, A025683, A002262, A004736.

Sequence in context: A117901 A074984 A112658 this_sequence A025669 A025676 A025683

Adjacent sequences: A025578 A025579 A025580 this_sequence A025582 A025583 A025584

KEYWORD

nonn,tabl,easy,nice

AUTHOR

David W. Wilson (davidwwilson(AT)comcast.net)

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 19 08:04 EDT 2008. Contains 142098 sequences.


AT&T Labs Research