Keywords

1 Introduction

Additive number theory [7], the study of integer subsets and their behavior under addition, is a branch of mathematics related to combinatorics. The simplest constructs within this field are binomial coefficients [6]. The properties of binomial coefficients have been explored by many over the history of mathematics [8, 9]. One generalization of the binomial coefficient is the multinomial coefficient [5, 8, 9]. Any multinomial coefficient can be expressed as the products of multiple binomial coefficients:

$$\begin{aligned} \left( {\begin{array}{c}k_1+k_2+ \cdots + k_m\\ k_1,k_2, \ldots , k_m\end{array}}\right) = \left( {\begin{array}{c}k_1+k_2\\ k_1\end{array}}\right) \left( {\begin{array}{c}k_1+k_2+k_3\\ k_1+k_2\end{array}}\right) \ldots \left( {\begin{array}{c}k_1+k_2+ \cdots +k_m\\ k_1+k_2+ \cdots +k_{m-1}\end{array}}\right) . \end{aligned}$$
(1)

For this type of expansions, the simplest is the trinomial coefficient [10,11,12,13]:

$$\begin{aligned} \left( {\begin{array}{c}r\\ k,m-k,r-m\end{array}}\right) = \left( {\begin{array}{c}r\\ m\end{array}}\right) \left( {\begin{array}{c}m\\ k\end{array}}\right) . \end{aligned}$$
(2)

1.1 Geometric Arrangement of Combinatorial Data

In discrete geometry [2], as the most basic 2D shape, triangular patterns are found in such series as combinatorial triangle A102639, differential triangle A194005 [1], additive triangle A035312, and Pascal triangle A007318 [8, 9, 11, 13].

This chapter proposes a novel method of classification of binary sequences that is shown to be combinatorial properties in nature. By using a simple basis of binary (0–1) sequences and applying simple classification rules, a triangular structure can be generated. The set of results has been named “Generative Triangular Numbers”. The term generative [3] is used to describe the technique of using a simple input and a repeatedly applied process, creating emergent properties through repetition. Generative science [4] is a multidisciplinary science that explores the natural world and its complex behaviors as a generative process. Generative approaches can be used to simulate describe behaviors in fractals, cellular automata, and various nonlinear systems.

The generated patterns are not currently found in the On-Line Encyclopedia of Integer Sequences (OEIS) potentially making them an interesting area for further research.

1.2 Previous Work

The current scheme is a derivative of the work of Zheng et al. [16, 17] to organize 1D 0–1 sequences as certain \(N>1\) length vectors using three parameters in variant measurement construction and classifications on hierarchical discrete phase spaces in general.

A trinomial equation is proposed as an elementary equation using three control parameters \(\{q,p,N\}\) [14, 15] to describe 0–1 vectors of N length as a subgroup, where N is the length of a vector, p indicates the number of elements with 1 values, and q records the number of changes from either 0–1 or 1–0 as the vector in a circular form to form a 2D array with nontrivial triangular numbers. This type of elementary equation can be generatively applied to make relevant triangular numbers as a geometric distribution to form a hierarchical 3D array generatively. Based on this hierarchical 3D array, different integer sequences can be observed from this type of generative triangular numbers, and one projection on p direction is collected by Vandermonde’s identities to show their correspondences to standard binomial coefficients. Main results are provided by algorithms, theorems, and corollaries. Sample cases are illustrated and possible meanings are discussed.

2 Definitions and Sample Cases

2.1 Definitions

Definition 1

Let X be a 0–1 vector, \(X=x_{N-1} \ldots x_i \ldots x_0\) with N elements as a state, \(x_i\in \{0,1\}, 0\le i< N\).

Definition 2

Let \(\varOmega (N)\) denote a vector space contained all 0–1 vectors of N length \(\varOmega (N)=\{\forall X| 0\le X < 2^{N}\}\) as an initial data set.

Definition 3

Let \(\left( {\begin{array}{c}n\\ k\end{array}}\right) \) be a binomial coefficient, it satisfies

$$\begin{aligned} \left( {\begin{array}{c}n\\ k\end{array}}\right) = {\left\{ \begin{array}{ll} 1, &{} \text {if }n=k;\\ 0, &{} \text {if }n\ne k,k > n \text { or }k <0; \\ \frac{n!}{k!\times (n-k)!}, &{} \text {otherwise.} \end{array}\right. } \end{aligned}$$
(3)

Under this condition, \(|\varOmega (N)|=2^{N}\) forms a vector space with N length, respectively.

Definition 4

For any selected vector \(X\in \varOmega (N)\), p(X) can be determined by

$$\begin{aligned} p(X) = \sum _{i=0}^{N-1} x_i, x_i \in \{0,1\}. \end{aligned}$$
(4)

Lemma 1

For a vector space \(\varOmega (N)\), p provides a complete partition on a subgroup and the number of vectors in the subgroup is a binomial coefficient.

Proof

For a given \(p, 0\le p \le N\), its combinatorial property makes a total number of \(\left( {\begin{array}{c}N\\ p\end{array}}\right) = \frac{N!}{p!\times (N-p)!}\) vectors identified to partition the vector space \(\varOmega (N)\).

Definition 5

For a circular vector \(X\in \varOmega (N)\), q(X) can be determined by

$$ \begin{aligned} q(X)=\sum _{0\le i <N} (x_{i}\equiv 0) \& (x_{i+1}\equiv 1); x_{i},x_{i+1}\in {0,1}, (i+1) \text { mod(}N\text {)}, \end{aligned}$$
(5)

e.g., \(N=10, X=1110011001, p(X)=6 (i=\{0,3,4,7,8,9\}); q(X)=2 (i=\{2,6\})\).

2.2 Sample Cases

Under this construction, any selected vector can be evaluated by the three parameters. Applying this set of parameters to create subgroups, interesting inner structures can be identified. That is, \(N=4\), all 16 vectors in the vector space, can be distinguished as six subgroups as a pair of (qp) values shown in Table 1.

Table 1 Six subgroups for \(N=4\) vector space in (qp) partitions

Each subgroup is linked to their corresponding vectors in Table 2

Table 2 Six subgroups, vectors, and enumerating numbers

Enumeration numbers of relevant subgroup numbers are shown in Table 3.

Table 3 \(N=4, (q,p)\) subgroup numbers and a projection

From Table 3, it is easy to verify that 16 vectors are sum of all possible numbers from six subgroups. Subgroup sequences of all numbers are as the same as \(N=4\) binomial coefficients. Applying this corresponding from \(N=1\)–6, six rows of original binomial coefficients can be created generatively as three-dimensional organization and each row \(\{p,N\}\) sequence corresponds a (qp) triangular shape, respectively, shown in Table 4.

Table 4 Six levels of binomial coefficients and generative triangular numbers

This type of relationship can be expanded on generative mechanism from special cases of \(N=1\)–6 to general conditions for any given N value. The detailed generative triangular mechanism is described in the next section.

3 Elementary Equations

Definition 6

Let f(qpN) denote a function for generative triangular numbers \(0\le p \le N, 0\le q \le \lfloor N/2 \rfloor \), for two initial and end subgroups \(p=\{0,N\},q=0\), let two functions of subgroups be \(f(0,0,N)=f(0,N,N)=1\).

For other subgroups, each case \(0< p< N, 0< q \le \lfloor N/2 \rfloor \) is a subgroup under a given condition. Elementary equation of generative triangular numbers is proposed to use binomial coefficient expression in Eq. 6.

$$\begin{aligned} f(q,p,N) = \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) . \end{aligned}$$
(6)

Using this elementary equation, the list of values can be verified. For example, \(f(1,1,5)=\frac{5}{4}\left( {\begin{array}{c}4\\ 1\end{array}}\right) \left( {\begin{array}{c}0\\ 0\end{array}}\right) = 5; f(2,3,5)=\frac{5}{2}\left( {\begin{array}{c}2\\ 2\end{array}}\right) \left( {\begin{array}{c}2\\ 1\end{array}}\right) = 5; \ldots f(2,4,5)=\frac{5}{1}\left( {\begin{array}{c}1\\ 2\end{array}}\right) \left( {\begin{array}{c}3\\ 1\end{array}}\right) = 0\). All \(\{f(q,p,5)\}\) calculations are listed in Table 5.

Table 5 \(N=5, f(q,p,5)\) subgroup numbers

Corollary 1

The elementary equation has equivalent identities on a pair of \(\{p,N-p\}\).

$$\begin{aligned} f(q,p,N)= & {} \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \nonumber \\= & {} \frac{N}{N-(N-p)}\left( {\begin{array}{c}N-(N-p)\\ q\end{array}}\right) \left( {\begin{array}{c}(N-p)-1\\ q-1\end{array}}\right) \\= & {} f(q, N-p, N). \nonumber \end{aligned}$$
(7)

Proof

Using the elementary equation, we have

$$\begin{aligned} f(q,p,N)= & {} \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \text {: (equation 6)} \\= & {} \frac{N}{(N-p)}\frac{(N-p)!}{(N-p-q)!q!}\left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{q}\frac{(N-p-1)!}{(N-p-q)!(q-1)!}\left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{q}\left( {\begin{array}{c}N-p-1\\ q-1\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{q}\left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \left( {\begin{array}{c}N-p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{p}\left( {\begin{array}{c}p\\ q\end{array}}\right) \left( {\begin{array}{c}N-p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{N-(N-p)}\left( {\begin{array}{c}N-(N-p)\\ q\end{array}}\right) \left( {\begin{array}{c}(N-p)-1\\ q-1\end{array}}\right) \text {: (equation 7)}\\= & {} f(q,N-p,N). \end{aligned}$$

p parameters are in the vertical direction. In general condition for any given N, triangular numbers can be arranged in Table 6 (Fig. 1).

Table 6 \(N=5, f(q,p,5)\) subgroup numbers in vertical direction
Fig. 1
figure 1

Triangular numbers for a given \(N > 1\)

4 Local Propensities

It is necessary to investigate different relationships for symmetry properties from the elementary equations to distinguish functions for generative triangular numbers.

4.1 Nontrivial Areas

Corollary 2

(A pair of symmetric properties) In either \(0< q\le p \le N-q\) or \(q=0, p=\{0,N\}\), a pair of nontrivial trinomial coefficients on triangular numbers satisfies

$$\begin{aligned} f(q,p,N)=f(q,N-p,N). \end{aligned}$$
(8)

Proof

Using the elementary equation, two cases are required.

Case 1: If \(q >0\), Eqs. 6 and 7 provide relevant combinatorial identities. Case 2: If \(q=0\), we have \(f(0,0,N)=f(0,N,N)=1\) by Definition 6.

4.2 Trivial Areas

Corollary 3

(Five areas for trivial values) If case 1—\(q > 0, 0< p <q\); case 2—\( N-q< p <N\); case 3—\(q=0, 0<p<N\); case 4—\(q > 0, p =0\); case 5—\(q>0, p=N\), then

$$\begin{aligned} f(q,p,N)= & {} 0. \end{aligned}$$
(9)

Proof

For cases 1, 2 and 3, we have

$$\begin{aligned} f(q,p,N)&= \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\&= \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ q\end{array}}\right) \bigg [\left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) = 0\bigg ], 0<p<q \, :\,Case\,1\\&= \frac{N}{N-p}\bigg [\left( {\begin{array}{c}N-p\\ q\end{array}}\right) =0\bigg ]\left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) , N-q< p<N \, :\,Case\,2 \\&-= \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ 0\end{array}}\right) \bigg [\left( {\begin{array}{c}p-1\\ -1\end{array}}\right) = 0\bigg ], q=0, 0<p <N \, :\,Case\,3\\&= 0. \end{aligned}$$

For cases 4 and 5, we have

$$\begin{aligned} f(q,p,N)= & {} \frac{N}{q}\left( {\begin{array}{c}N-p-1\\ q-1\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{q}\left( {\begin{array}{c}N-1\\ q-1\end{array}}\right) \bigg [\left( {\begin{array}{c}-1\\ q-1\end{array}}\right) = 0\bigg ], q>0, p=0 \, :\,Case\,4 \\= & {} \frac{N}{q}\bigg [\left( {\begin{array}{c}-1\\ q-1\end{array}}\right) = 0\bigg ]\left( {\begin{array}{c}N-1\\ q-1\end{array}}\right) , q>0, p=N \, :\,Case\,5 \\= & {} 0. \end{aligned}$$

5 Projection Properties

5.1 Linear Projection

In this section, the algebraic properties of linear projection are investigated.

Definition 7

Let L(pN) denote a function as a linear projection to collect all possible values for a given \(p, 0\le p \le N\).

For the case of \(N=5\), two projections and their generative triangular numbers are shown in Table 7, respectively.

Table 7 \(N=5, f(q,p,5)\) subgroup numbers and two projections

Following theorems and corollaries are claimed.

Theorem 4

If \(L(p,N)=\sum _{q=1}^{p} f(q,p,N), 0<p<N\), then the projection function L(pN) is a binomial coefficient and

$$\begin{aligned} L(p,N)= & {} \left( {\begin{array}{c}N\\ p\end{array}}\right) . \end{aligned}$$
(10)

Proof

For a fixed \(p, 0< p <N\), all possible \(\{f(q,p,N)\}\) are collected to form the following equation:

$$\begin{aligned} L(p,N)= & {} \sum _{q=1}^{p} f(q,p,N) \\= & {} \sum _{q=1}^{p} \frac{N}{N-p}\left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{N-p} \sum _{q=1}^{p} \left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ q-1\end{array}}\right) \\= & {} \frac{N}{N-p} \sum _{q=1}^{p} \left( {\begin{array}{c}N-p\\ q\end{array}}\right) \left( {\begin{array}{c}p-1\\ p-q\end{array}}\right) ; \quad \left( {\begin{array}{c}n\\ k\end{array}}\right) =\left( {\begin{array}{c}n\\ n-k\end{array}}\right) \\= & {} \frac{N}{N-p} \left( {\begin{array}{c}N-1\\ p\end{array}}\right) ; \quad \left( {\begin{array}{c}x+y\\ n\end{array}}\right) =\sum _{k=0}^n\left( {\begin{array}{c}x\\ k\end{array}}\right) \left( {\begin{array}{c}y\\ n-k\end{array}}\right) \\= & {} \frac{N}{(N-p)}\frac{(N-1)!}{(N-p-1)!p!} \\= & {} \frac{N!}{(N-p)!p!} \\= & {} \left( {\begin{array}{c}N\\ p\end{array}}\right) . \end{aligned}$$

For a complete sequence of binomial coefficients, it is necessary to include both initial and end subgroups. Further corollaries can be established.

Corollary 5

For any given \(N>0\) under the listed condition, a set of projection function \(\{L(p,N)\}, 0\le p \le N\) is composed of the same sequence of binomial coefficients

$$\begin{aligned} L(p,N)= & {} \left( {\begin{array}{c}N\\ p\end{array}}\right) . \end{aligned}$$
(11)

Proof

For \(0<p<N\) condition, they are well determined by Theorem 5.1 and two end subgroups \(p=\{0,N\},\left( {\begin{array}{c}N\\ 0\end{array}}\right) =\left( {\begin{array}{c}N\\ N\end{array}}\right) =1\) by defined initial conditions.

Corollary 6

The sum of all possible \(\{L(p,N)\}_{p=0}^{N}\) is

$$\begin{aligned} \sum _{p=0}^N L(p,N)= & {} 2^N. \end{aligned}$$
(12)

Proof

Collecting all possible numbers by Corollary 2, we have

$$\begin{aligned} \sum _{p=0}^N L(p,N)= & {} \sum _{p=0}^N \left( {\begin{array}{c}N\\ p\end{array}}\right) \\= & {} (1+1)^N\\= & {} 2^N. \end{aligned}$$

Corollary 7

For \(0 \le p \le N\), a pair of functions has an equivalent formula

$$\begin{aligned} L(p,N)= & {} L(N-p,N). \end{aligned}$$
(13)

Proof

By Corollary 2.1, both equations are equal.

Theorem 8

For any \(N>0\), the sum of all possible functions on \(\{f(q,p,N\}_{\forall p, \forall q}\) or \(\{L(p,N)\}_{p=0}^{N}\) is equal to \(2^N\)

$$\begin{aligned} \sum _{\forall p}\sum _{\forall q}f(q,p,N)= & {} \sum _{p=0}^N L(p,N) = 2^N. \end{aligned}$$
(14)

Proof

By Corollary 6, two equations are equal.

5.2 Triangular Sequence

Definition 8

For a given \(N\ge 1\), let T(N) denote a 2D structure with all nontrivial triangular numbers.

$$\begin{aligned} T(N)= & {} \{f(q,p,N)| f(q,p,N) > 0, \, 0\le q \le \lfloor N/2 \rfloor ,\, 0 \le p \le N\} \end{aligned}$$
(15)

Corollary 9

For a given N, if |T(N)| be a total number of distinguishable elements for nontrivial triangular numbers, then |T(N)| has the following equation:

$$\begin{aligned} |T(N)|= & {} {\left\{ \begin{array}{ll} N^2/4 + 2;&{} N\equiv 0, \text { (mod 2)}\\ (N^2 -1)/4 + 2; &{} N\equiv 1, \text { (mod 2)}. \end{array}\right. } \end{aligned}$$
(16)

Proof

By Corollary 2 for a given N, a triangular shape for nontrivial members is composed of two parts: a triangular area and two \(q=0\) points. The triangular area has \((N-1)\) length and \(\lfloor N/2 \rfloor \) high. If \(N\equiv 0, \text {(mod 2)}\), the triangular area is a regular triangle contained \(N^2/4\) elements, so the total number of the generative triangular shape is \(N^2/4 + 2\). For an odd valued N, a triangular area has additional \(\lfloor N/2 \rfloor \) members side on a regular triangle with \(\lfloor N/2 \rfloor ^2\) elements, so the total number of elements is \(\lfloor N/2 \rfloor ^2+\lfloor N/2 \rfloor + 2= (N^2 -1)/4 + 2\).

Definition 9

For a given \(N\ge 1\), let TS(N) denote an integer sequence with |T(N)| elements for all nontrivial triangular numbers in T(N)

$$\begin{aligned} TS(N):= & {} [f(0,0,N),f(0,N,N), \ldots ,\nonumber \\&\ldots , f(q,q,N), \ldots , f(q,p,N),\ldots ,f(q,N-q,N), \ldots , \nonumber \\&\ldots , f(\lfloor N/2 \rfloor ,\lfloor N/2 \rfloor ,N),f(\lfloor N/2 \rfloor ,\lceil N/2 \rceil ,N)],\nonumber \\&\, 1\le q \le \lfloor N/2 \rfloor ,\, q \le p \le N-q. \end{aligned}$$
(17)

5.3 Linear Sequence

Definition 10

For a given \(N\ge 1\), let L(N) denote a 1D structure with relevant linear numbers.

$$\begin{aligned} L(N)= & {} \{L(p,N)| 0 \le p \le N\} \end{aligned}$$
(18)

Corollary 10

For a given N, if |L(N)| be a total number of distinguishable elements for linear numbers, then |L(N)| satisfies Eq. 19.

$$\begin{aligned} |L(N)|= & {} N+1 \end{aligned}$$
(19)

Definition 11

For a given \(N\ge 1\), let LS(N) denote an integer sequence with |T(N)| elements for all linear numbers in L(N) (Table 8)

$$\begin{aligned} LS(N):= & {} [L(0,N),\ldots ,L(p,N), \ldots , L(N,N)], \, 0\le p \le N. \end{aligned}$$
(20)
Table 8 \(\{T(4),T(5),T(6)\}, \{L(4),L(5),L(6)\}\) subgroup numbers in three levels

From the listed six groups of \(\{T(4),T(5),T(6)\}\) and \(\{L(4),L(5),L(6)\}\) structures, two integer sequences are arranged as follows:

$$\begin{aligned} TS(4),TS(5),TS(6):= & {} [ 1, 1, 4, 4, 4, 2, 1, 1, 5, 5, 5, 5, 5, 5, 1, 1, 6, 6, 6, 6, 6, 9, 12, 9, 2 ];\\ LS(4),LS(5),LS(6):= & {} [1,4,6,4,1,1,5,10,10,5,1,1,6,15,20,15,6,1]. \end{aligned}$$
Table 9 Triangular number arrays for \(N=\{16,17\}\) cases

6 Sample Cases

Two sample cases are selected for \(N=\{17,18\}\) to show their triangular numbers and generative structures in Table 9. In relation to relevant integer sequences, both \(\{L(16), L(17)\}\) and \(\{T(16),T(17)\}\) are shown in Table 9. Two integer sequences are significantly different. The triangular number sequence in this case with a total length of 140 integers is three times longer than the linear number sequence with a total length of 35 integers. Two integer sequences represent different partition results on the same number \(196608=2^{16}+2^{17}\) for generative binomial and trinomial coefficients, respectively.

7 Conclusion

Due to the proposed elementary equation of trinomial coefficients with excellent symmetric properties on a 2D grid similar to binomial coefficients on a 1D line, projecting operation makes 2D T(N) array be 1D linear L(N) array, respectively. Two types of TS(N) and LS(N) integer sequences can be generated. As the simplest expansion of multinomial coefficients, discrete 2D geometry could provide solid combinatorial foundation to support multinomial explorations.

From a combinatorial geometry viewpoint, triangular numbers provide a key construction to link between trinomial and binomial representation in mathematical foundation. Trinomial integer sequences, as representatives, need to be deeply explored by modern combinatorial & discrete mathematical societies. Further explorations are expected on detailed analysis and systematic construction on both and practical applications.