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.
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
Offset: 1
Examples
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;
Links
Programs
Extensions
Definition simplified by the Assoc. Eds. of the OEIS, Oct 12 2010
More terms from Antti Karttunen, Oct 10 2017
Comments