OFFSET
1,2
COMMENTS
This sequence contains every positive integer infinitely often.
This is a fractal sequence. Striking out the first instance of every term produces 1, 2, 1, 2, 1, 3, 2, 1, 3, 2, 1, 3, ..., which is the same as the original sequence, as far as it goes.
LINKS
Arkadiusz Wesolowski, Rows n = 1..14 of triangle, flattened
Eric Weisstein's World of Mathematics, Positive Integer
Wikipedia, Fractal sequence
EXAMPLE
1;
2, 1, 2, 1;
3, 2, 1, 3, 2, 1, 3, 2, 1;
...
MATHEMATICA
f[n_] := Table[Range[n, 1, -1], {n}]; Flatten@Array[f, 6] (* Wesolowski *)
Flatten[Table[Table[Range[n, 1, -1], {n}], {n, 6}]] (* Alonso del Arte, Jul 24 2012 *)
CROSSREFS
KEYWORD
easy,nonn,tabf,changed
AUTHOR
Arkadiusz Wesolowski, Jul 24 2012
STATUS
approved