Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

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

0,6

COMMENT

a(n) = n - the largest triangular number <= n. - Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Dec 25 2001

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

Values x of unique solution pair (x,y) to equation T(x+y) + x = n, where T(k)=A000217(k). - Lekraj Beedassy (blekraj(AT)yahoo.com), Aug 21 2004

a(A000217(n)) = 0; a(A000096(n)) = n. [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 20 2009]

LINKS

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

FORMULA

a(n) = (n-((trinv(n)*(trinv(n)-1))/2)); trinv := n -> floor((1+sqrt(1+8*n))/2) (cf. A002024); # Gives integral inverses of triangular numbers.

a(n)=n-A000217(A003056(n))=n-A057944(n). - Lekraj Beedassy (blekraj(AT)yahoo.com), Aug 21 2004

a(n) = A140129(A023758(n+2)). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 14 2008

a(n)=f(n,1) with f(n,m) = if n<m then n else f(n-m,m+1). [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 20 2009]

MAPLE

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

PROGRAM

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

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

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

CROSSREFS

A002260(n)=1+a(n).

Cf. A025675, A025682, A025691, A002024, A048645, A004736, A025581. As a sequence, essentially same as A048151.

A053645, A053186. [From Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 20 2009]

Sequence in context: A025690 A025668 A048151 this_sequence A025675 A025682 A025691

Adjacent sequences: A002259 A002260 A002261 this_sequence A002263 A002264 A002265

KEYWORD

nonn,tabl,easy,nice

AUTHOR

Angele Hamel (amh(AT)maths.soton.ac.uk)

page 1

Search completed in 0.003 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 November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research