OFFSET
1,2
COMMENTS
Lim f(f(...f(n))) where f(n) is fractal sequence in A004736.
LINKS
Clark Kimberling, Fractal sequences
Clark Kimberling, Numeration systems and fractal sequences, Acta Arithmetica 73 (1995) 103-117.
EXAMPLE
The triangle starts:
1
2 1
1 2 1
1 1 2 1
2 1 1 2 1
1 2 1 1 2 1
Since the sequence starts 1,2,1,1,2, row 5 is the reversal of that, 2,1,1,2,1.
PROG
(PARI) at(n)=local(r, k); r=vector(n*(n+1)\2); r[1]=r[3]=1; r[2]=2; k=4; for(i=3, n, for(j=1, i, r[k]=r[i-j+1]; k++)); r /* Generates first n>1 rows of triangle. - Franklin T. Adams-Watters, Aug 08 2011. */
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
STATUS
approved