login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A055087 Integers 0..n then 0..n then 0..n+1 then 0..n+1 etc. 5
0, 0, 0, 1, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 7, 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, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,9

COMMENTS

Second column in the monotonic justified array of all positive generalized Fibonacci sequences (A160271). see also A199474. - Casey Mongoven, Nov 06 2011

Can also be seen as an irregular triangle with duplicated rows of A002262. - Reinhard Zumkeller, Jul 14 2015

LINKS

Reinhard Zumkeller, Rows n = 0..120 of triangle, flattened

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

EXAMPLE

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

MATHEMATICA

With[{nn=10}, Flatten[Table[{Range[0, n], Range[0, n]}, {n, 0, nn}]]] (* Harvey P. Dale, May 30 2015 *)

PROG

(PARI) {a(n) = (1 + 4*n - sqr( floor( sqrt( 1 + 4*n)))) \ 4}

(Haskell)

import Data.List (transpose)

a055087 n k = a055087_tabf !! n !! k

a055087_row n = a055087_tabf !! n

a055087_tabf = concat $ transpose [a002262_tabl, a002262_tabl]

a055087_list = concat a055087_tabf

-- Reinhard Zumkeller, Jul 14 2015

CROSSREFS

Cf. A002262.

Sequence in context: A096771 A129714 A022333 * A025685 A194515 A163325

Adjacent sequences:  A055084 A055085 A055086 * A055088 A055089 A055090

KEYWORD

nonn,easy,tabf

AUTHOR

Michael Somos, Jun 13 2000

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified August 1 20:25 EDT 2015. Contains 260189 sequences.