This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A161382 (0,1)-sequence where n-th run has length n^2. 2
 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS a(n) = A161385(n) - 1. - Reinhard Zumkeller, Aug 10 2014 LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 MATHEMATICA Table[{Table[0, n^2], Table[1, (n+1)^2]}, {n, 1, 7, 2}]//Flatten (* Harvey P. Dale, Jul 06 2016 *) PROG (Haskell) a161382 n = a161382_list !! (n-1) a161382_list = concatMap (\x -> replicate (x ^ 2) (1 - mod x 2)) [1..] -- Reinhard Zumkeller, Aug 10 2014 CROSSREFS Cf. A161385. Sequence in context: A115517 A022930 A068344 * A138886 A099859 A176416 Adjacent sequences:  A161379 A161380 A161381 * A161383 A161384 A161385 KEYWORD nonn AUTHOR N. J. A. Sloane, Nov 29 2009 STATUS approved

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

Last modified August 22 16:27 EDT 2017. Contains 290951 sequences.