login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A057212 n-th run has length n. 6
0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; table; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

T(n,k) = 1 - n mod 2, 1 <= k <= n. [Reinhard Zumkeller, Mar 18 2011]

REFERENCES

K. H. Rosen, Discrete Mathematics and its Applications, 1999, fourth edition, page 79, exercise 10 (g).

FORMULA

a(n)=A003056(n) mod 2 so as a square array T(n, k)=n+k mod 2 - Henry Bottomley (se16(AT)btinternet.com), Mar 22 2001

a(n) = (1+(-1)^A002024(n))/2, where A002024(n)=round(sqrt(2*n)). - Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Feb 23 2003

MAPLE

A002024 := n->round(sqrt(2*n)):A057212 := n->(1+(-1)^A002024(n))/2;

PROG

(Haskell)

a057212 n = a057212_list !! (n-1)

a057212_list = concat $ zipWith ($) (map replicate [1..]) a000035_list

-- Reinhard Zumkeller, Mar 18 2011

CROSSREFS

Cf. A057211.

As a simple triangular or square array virtually the only sequences which appear are A000004, A000012 and A000035. Cf. A060510.

Sequence in context: A071981 A093692 A105384 * A023959 A076182 A010058

Adjacent sequences:  A057209 A057210 A057211 * A057213 A057214 A057215

KEYWORD

easy,nonn,tabl

AUTHOR

Ben Tyner (tyner(AT)phys.ufl.edu), Sep 27 2000

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

Content is available under The OEIS End-User License Agreement .

Last modified February 17 22:48 EST 2012. Contains 206085 sequences.