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
Michael 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
KEYWORD
nonn,easy,tabf,changed
AUTHOR
Michael Somos, Jun 13 2000
STATUS
approved