OFFSET
1,2
COMMENTS
EXAMPLE
Northwest corner:
1...5...10...16...23
2...6...11...17...24
3...7...12...18...25
4...8...13...19...26
9...14..20...27...35
MATHEMATICA
z = 30;
c[k_] := (k^2 + 5 k - 4)/2;
c = Table[c[k], {k, 1, z}] (* A052905 *)
f[n_] := If[MemberQ[c, n], 1, 1 + f[n - 1]]
f = Table[f[n], {n, 1, 255}] (* fractal sequence [A002260] *)
r[n_] := Flatten[Position[f, n]]
t[n_, k_] := r[n][[k]]
TableForm[Table[t[n, k], {n, 1, 7}, {k, 1, 7}]]
p = Flatten[Table[t[k, n - k + 1], {n, 1, 13}, {k, 1, n}]] (* A194046 *)
q[n_] := Position[p, n]; Flatten[Table[q[n], {n, 1, 70}]] (* A194047 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Aug 13 2011
STATUS
approved