Digital Logic | Number of Boolean functions
In the below article, we are going to find the number of Boolean Functions possible from the given sets of binary number.
Statement-1:
Suppose two sets are set ‘A’ = {1, 2, 3, 4, …….., n} where each number will be either ‘0’ or ‘1’ and hence the total number of boolean variable possible will be
and set ‘B’ = {0, 1}. Now the number of possible boolean function when counting is done from set ‘A’ to ‘B’ will be
.
Explanation:
As we know that boolean variable is either ‘0’ or ‘1’ and in the set ‘A’ there are ‘n’ numbers and each number will be either ‘0’ or ‘1’ and hence the total number of possible boolean variable are
. Now set ‘A’ contain
boolean variable and set ‘B’ contain 2 boolean variable.
This can be understood with help of below diagram:

Each element of set ‘A’ makes a function with each element of set ‘B’ hence one element of set ‘A’ makes two function with set ‘B’ and hence total number of possible boolean functions are
where
is the number of element in set ‘A’.
Statement-2:
Suppose two sets of ternary variable are set ‘A’ = {1, 2, 3, 4, …….., n} where each number will be either ‘0’ or ‘1’ or ‘2’ and hence the total number of ternary variable possible will be
and set ‘B’ = {0, 1}. Now the number of possible boolean function when counting is done from set ‘A’ to ‘B’ will be
.
Explanation:
As we know that ternary variables are ‘0’ or ‘1’ or ‘2’ and in the set ‘A’ there are ‘n’ numbers and each number will be either ‘0’ or ‘1’ or ‘2’ and hence the total number of possible ternary variables are
. Now set ‘A’ contain
ternary numbers and set ‘B’ contain 2 boolean variable.
This can be understood with help of below diagram:

Each element of set ‘A’ makes a function with each element of set ‘B’ hence one element of set ‘A’ makes two functions with set ‘B’ and hence the total number of possible boolean functions are
where
is the number of elements in set ‘A’.
Note:
Similarly for a set ‘A’ of ‘n’ numbers of k-ary variable and set ‘B’ of p-ary variable then the total number of p-ary possible function will be
.
Recommended Posts:
- Digital Logic | Minimization of Boolean Functions
- Digital Logic | Number of possible Functions
- Digital Logic | Self dual functions
- Digital Logic | Logic Gates
- Mathematics | Representation of Boolean Functions
- Digital Logic | 5 variable K-Map
- Digital logic | Encoder
- Digital Logic | Implicants in K-Map
- Counters in Digital Logic
- Digital Logic | Latches
- Digital Logic | Full Subtractor
- Digital logic | Binary Decoder
- Digital Logic | n-bit Johnson Counter
- Digital logic | Variable entrant map (VEM)
- Digital logic | Ripple Counter
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




