login
A161385
(1,2)-sequence where n-th run has length n^2.
2
1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
1,2
LINKS
FORMULA
a(n) = A161382(n) + 1. - Reinhard Zumkeller, Aug 10 2014
MATHEMATICA
With[{x=10}, Riffle[Table[PadRight[{}, n^2, 1], {n, 1, x, 2}], Table[PadRight[{}, m^2, 2], {m, 2, x+1, 2}]]//Flatten] (* Harvey P. Dale, Jul 26 2024 *)
PROG
(Haskell)
a161385 = (+ 1) . a161382 -- Reinhard Zumkeller, Aug 10 2014
CROSSREFS
Cf. A161382.
Sequence in context: A101080 A130836 A279185 * A152907 A078786 A102677
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 29 2009
STATUS
approved