The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140685 Triangle T(n,k) read by rows: T(n,k) = 1 if n is odd and k=(n-1)/2; T(n,k) = 2 otherwise. 4
1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 1, 2, 2, 2, 2, 2, 2, 2 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Row sums give A042948.
LINKS
EXAMPLE
The triangle starts in row n=1 with columns 0 <= k < n as:
1;
2, 2;
2, 1, 2;
2, 2, 2, 2;
2, 2, 1, 2, 2;
2, 2, 2, 2, 2, 2;
2, 2, 2, 1, 2, 2, 2;
2, 2, 2, 2, 2, 2, 2, 2;
2, 2, 2, 2, 1, 2, 2, 2, 2;
2, 2, 2, 2, 2, 2, 2, 2, 2, 2;
PROG
(Scheme)
(define (A140685 n) (A140685tr (A002024 n) (- (A002260 n) 1)))
(define (A140685tr n k) (if (and (odd? n) (= k (/ (- n 1) 2))) 1 2))
CROSSREFS
Sequence in context: A276788 A282625 A026498 * A055666 A251139 A195061
KEYWORD
nonn,tabl,easy
AUTHOR
Roger L. Bagula and Mats Granvik, Jul 11 2008
EXTENSIONS
Definition simplified by the Assoc. Eds. of the OEIS, Oct 12 2010
More terms from Antti Karttunen, Oct 10 2017
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 28 16:19 EDT 2024. Contains 372916 sequences. (Running on oeis4.)