A035313 (Largest) diagonal of the Zorach additive triangle A035312.
1, 3, 9, 26, 66, 154, 346, 771, 1726, 3887, 8768, 19700, 43890, 96717, 210665, 453893, 968903, 2053260, 4328489, 9093971, 19068611, 39943689, 83628399, 175018523, 366081209, 765102907, 1597315656, 3330380593, 6933810145
Offset: 0
Examples
Start with 1; 2 is the next, then add 1+2 to get 3, then 4 is next, then 4+2=6 and 6+3 is 9, then 5 is not next because 5+4=9 and 9 was already used, so 7 is next...which ultimately generates 26 in the final column...
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
- A. C. Zorach, Additive triangle
- A. C. Zorach, Haskell programs for sequences in connection with Zorach additive triangle
Programs
-
Haskell
-- See link for Haskell program.
-
Mathematica
(* Assuming n <= t(n,1) <= 3n *) rows = 29; uniqueQ[t1_, n_] := (t[n, 1] = t1; Do[t[n, k] = t[n, k-1] + t[n-1, k-1], {k, 2, n}]; n*(n+1)/2 == Length[ Union[ Flatten[ Table[t[m, k], {m, 1, n}, {k, 1, m}]]]]); t[n_, 1] := t[n, 1] = Select[ Complement[Range[n, 3 n], Flatten[ Table[t[m, k], {m, 1, n-1}, {k, 1, m}]]], uniqueQ[#, n] &, 1][[1]]; Last /@ Table[t[n, k], {n, 1, rows}, {k, 1, n}] (* Jean-François Alcover, Jun 05 2012 *)
Extensions
More terms from Christian G. Bower and Dean Hickerson
Comments