proposed
approved
proposed
approved
editing
proposed
(Python)
from math import comb, isqrt
def A007318(n): return comb(r:=(m:=isqrt(k:=n+1<<1))-(k<=m*(m+1)), n-comb(r+1, 2)) # Chai Wah Wu, Nov 11 2024
approved
editing
proposed
approved
editing
proposed
J. H. Conway and N. J. A. Sloane, <a href="http://citeseerx.ist.psu.edu/viewdocpdf/summary?doi=10.1.1.39.9899f097dc2b7ab879b1f15f52f188faa5243271f982">Low-dimensional lattices. VII Coordination sequences</a>, Proc. R. Soc. Lond. A, Vo. 453, No. 1966 (1997), pp. 2369-2389.
D. Merlini, R. Sprugnoli and M. C. Verri, <a href="https://doi.org/10.1007/978-3-0348-8405-1_11">An algebra for proper generating trees</a>, in: D. Gardy and A. Mokkadem (eds.), Mathematics and Computer Science, Trends in Mathematics, Birkhäuser, Basel, 2000, pp. 127-139; <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.22.3810&rep=rep1&type=pdf/d44077e8b0d03e6a3402e8dfb57b59e6f264064e
approved
editing
Flatten@Table[CoefficientList[(1+x)^n, x], {n, 0, 11}] (* Oliver Seipel, Jun 04 2024 *)
a[n_, 0] := 1; a[n_, n_] := 1;
a[n_, k_] := a[n, k] = a[n-1, k-1] + a[n-1, k];
Flatten@Table[a[n, k], {n, 0, 11}, {k, 0, n}] (* Oliver Seipel, Jun 04 2024 *)
a[n_, 0] := 1; a[n_, n_] := 1;
a[n_, k_] := a[n, k] = a[n-1, k] (n+k)/(n-k) - a[n-1, k-1];
Flatten@Table[
a[n, k], {n, 0, 11}, {k, 0, n}] (* Oliver Seipel, Jun 04 2024, after Peter Bala *)
nonn,tabl,nice,easy,core,look,hear,changed
proposed
approved
editing
proposed
a[n, k], {n, 0, 11}, {k, 0, n}] (* Oliver Seipel, Jun 04 2024 , after Peter Bala *)
Flatten@Table[CoefficientList[(1+x)^n, x], {n, 0, 11}] (* Oliver Seipel, Jun 04 2024 *)
a[n_, 0] := 1; a[n_, n_] := 1;
a[n_, k_] := a[n, k] = a[n-1, k-1] + a[n-1, k];
Flatten@Table[a[n, k], {n, 0, 11}, {k, 0, n}] (* Oliver Seipel, Jun 04 2024 *)
a[n_, 0] := 1; a[n_, n_] := 1;
a[n_, k_] := a[n, k] = a[n-1, k] (n+k)/(n-k) - a[n-1, k-1];
Flatten@Table[
a[n, k], {n, 0, 11}, {k, 0, n}] (* Oliver Seipel, Jun 04 2024 after Peter Bala*)
approved
editing