A128222 A127701 * A128174.
1, 1, 2, 3, 1, 3, 1, 4, 1, 4, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10
Offset: 1
Examples
First few rows of the triangle: 1; 1, 2; 3, 1, 3; 1, 4, 1, 4; 5, 1, 5, 1, 5; 1, 6, 1, 6, 1, 6; 7, 1, 7, 1, 7, 1, 7; ...
Programs
-
Mathematica
a128222[n_, k_] := If[EvenQ[n-k], n, 1]/;1<=k<=n a128222[r_] := Table[a128222[n, k], {n, 1, r}, {k, 1, n}] TableForm[a128222[7]] (* triangle *) Flatten[a128222[10]] (* data *) (* Hartmut F. W. Hoft, Mar 08 2017 *)
Formula
Extensions
Inserted omitted values a(28) = 7 and a(29) = 1, Hartmut F. W. Hoft, Mar 08 2017
Comments