The Wayback Machine - https://web.archive.org/web/20241119105953/https://www.geeksforgeeks.org/number-of-boolean-functions/
Open In App

Number of Boolean functions

Last Updated : 25 Nov, 2019
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow
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 2^n and set ‘B’ = {0, 1}. Now the number of possible boolean function when counting is done from set ‘A’ to ‘B’ will be 2^{(2^n)}. 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 2^n. Now set ‘A’ contain 2^n 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 2^{(2^n)} where 2^n 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 3^n and set ‘B’ = {0, 1}. Now the number of possible boolean function when counting is done from set ‘A’ to ‘B’ will be 2^{(3^n)}. 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 3^n. Now set ‘A’ contain 3^n 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 2^{(3^n)} where 3^n 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 p^{(k^n)}.

Previous Article
Next Article

Similar Reads

Prime Implicant chart for minimizing Cyclic Boolean functions
Prerequisite - K-Map (Karnaugh Map), Implicants in K-Map A functions is said to be a Cyclic Boolean Function if there is no Essential prime Implicant in its respective K-Map. Properties of Cyclic functions: Every prime Implicant is of same size.Every minterm is covered by at least two prime Implicants (which means no essential prime Implicants).Hav
3 min read
Minimization of Boolean Functions
As discussed in the "Representation of Boolean Functions" every boolean function can be expressed as a sum of minterms or a product of maxterms. Since the number of literals in such an expression is usually high, and the complexity of the digital logic gates that implement a Boolean function is directly related to the complexity of the algebraic ex
3 min read
Boolean Functions
Boolean Algebra was given by George Boole. It is a set of rules used to simplify a given logical expression without changing its functionality. It is mainly used when several variables present are less. The algebraic expression used in Boolean Algebra is known as Boolean Expression and it is used to describe Boolean Function. The Boolean expression
5 min read
Representation of Boolean Functions
Boolean functions are expressions involving Boolean variables and operators, such as AND, OR, and NOT. These functions are fundamental in digital logic design, computer science, and engineering. Table of Content What are Boolean Functions?Definition of Boolean FunctionsRepresentation of Boolean FunctionsDifferent representations of a Boolean functi
10 min read
Composite functions - Relations and functions
Let f : A->B and g : B->C be two functions. Then the composition of f and g, denoted by g o f, is defined as the function g o f : A->C given by g o f (x) = g{f(x)}, ∀ x ∈ A. Clearly, dom(g o f) = dom(f). Also, g o f is defined only when range(f) is a subset of dom(g). Evaluating composite functions We know composite function is written as
5 min read
Total Recursive Functions and Partial Recursive Functions in Automata
Total Recursive Functions: A recursive function is called total recursive function if it is defined for its all arguments.Let f(a1, a2, ...an) be a function defined on function g(b1, b2, ...bn).Then f is a total function if every element of f is assigned to some unique element of function g. A total function is called recursive or primitive recursi
2 min read
Inverse functions and composition of functions
Inverse Functions - In mathematics a function, a, is said to be an inverse of another, b, if given the output of b a returns the input value given to b. Additionally, this must hold true for every element in the domain co-domain(range) of b. In other words, assuming x and y are constants, if b(x) = y and a(y) = x then the function a is said to be a
3 min read
Classes of Functions | Injective, Surjective and Bijective Functions
Classes of Functions: Functions are fundamental in mathematics and have wide-ranging applications in engineering, computer science, and various other fields. Understanding the different classes of functions—injective, surjective, and bijective—is essential for analyzing mathematical models and solving complex problems. This article explores these c
6 min read
Mathematics | Unimodal functions and Bimodal functions
Before diving into unimodal and bimodal functions, it's essential to understand the term "modal." A mode refers to the value at which a function reaches a peak, typically a maximum point. The behavior of functions can vary depending on how many peaks or modes they contain, giving rise to classifications like unimodal, bimodal, and even multimodal f
5 min read
Counting Boolean function with some variables
Prerequisite - Canonical and Standard Form In the below articles, we will see some varieties of problems with three variables. Statement-1: Counting the number of Boolean functions possible with two variables such that there are exactly two min terms. Explanation: As we already know that from two variables (a and b) four [Tex](2^2)[/Tex] numbers (0
5 min read
Basics of Boolean Algebra in Digital Electronics
In the time middle of the 19th century, mathematician George Boole introduced a new form of mathematical reasoning system which is widely known as Boolean Algebra. This is a special branch of mathematics in which all logic is based on only two representations True(1) and False,(0). In modern science, Boolean algebra has become a very integral part
7 min read
Boolean Algebraic Theorems
Boolean algebra is a fundamental area of mathematics that deals with variables and logical operations. It is essential in the field of computer science and digital circuit design. Boolean algebraic theorems are the theorems that are used to change the form of a boolean expression. Sometimes these theorems are used to minimize the terms of the expre
5 min read
Proof of De-Morgan's Laws in Boolean Algebra
De Morgan's Laws are fundamental principles in Boolean algebra and set theory, providing rules for transforming logical expressions. These laws are essential for simplifying and manipulating Boolean expressions, which have significant applications in digital circuit design, computer science, and engineering. This article provides a detailed proof o
7 min read
Absorption Law in Boolean Algebra
Boolean Algebra is a fundamental area of mathematics and computer science that deals with binary variables and logic operations. It forms the basis of the digital circuit design and is important for understanding how logical expressions are simplified and optimized. Among the various laws in the Boolean Algebra, the Absorption Law plays a significa
7 min read
Boolean Algebra
Boolean algebra is a type of algebra that is created by operating the binary system. In the year 1854, George Boole, an English mathematician, proposed this algebra. This is a variant of Aristotle's propositional logic that uses the symbols 0 and 1, or True and False. Boolean algebra is concerned with binary variables and logic operations. Boolean
14 min read
Axioms of Boolean Algebra
In this article, we are going to discuss Axioms of Boolean Algebra; these axioms/Theorems are important as these will be used in many different topics of Digital Electronics like Sequential Circuit Designing and Combinational Circuit Designing as well. These Axioms are the building blocks of Digital Electronics. So understand these axioms carefully
5 min read
Properties of Boolean Algebra
The Boolean Algebra uses sets of rules for analyzing digital gates and circuits. In this article, we will be going through the Properties or Laws of the Boolean algebra. So first we will start our article by defining what are the properties of Boolean Algebra, and then we will go through what are Boolean Addition and Multiplication. Then we will go
7 min read
Number of possible Functions
In the below articles, we are going to calculate the number of functions possible from given two sets of the element. Statement: Suppose there are two sets 'A' and 'B' containing 'n' and 'm' number of elements respectively, i.e., Sets, 'A' = {1, 2, 3, 4, ............, n}, 'B' = {1, 2, 3, 4, ............, m} Then the number of function possible will
2 min read
Mathematics | Total number of Possible Functions
In this article, we are discussing how to find a number of functions from one set to another. For understanding the basics of functions, you can refer to this: Classes (Injective, surjective, Bijective) of Functions. Number of functions from one set to another: Let X and Y be two sets having m and n elements respectively. In a function from X to Y,
5 min read
Show that the number 6 is a rational number by finding a ratio of two integers equal to the number
Numerals are the mathematical figures used in financial, professional as well as a social field in the social world. The digits and place value in the number and the base of the number system determine the value of a number. Numbers are used in various mathematical operations as summation, subtraction, multiplication, division, percentage, etc. whi
6 min read
If the square root of a number plus two is the same number, then find the number?
Number System, any of various sets of symbols and therefore the rules for using them to denote numbers, which are wont to state what percentage objects are there during a given set or in other words Number system is a mathematical presentation of numbers of a given set. Square RootThe square root of a number is a value, which on multiplication by i
3 min read
Class 11 RD Sharma Solutions - Chapter 3 Functions - Exercise 3.3
Question 1. Find the domain of each of the following real valued functions of real variable:(i) f (x) = 1/x Solution: We are given, f (x) = 1/x. Here, f (x) is defined for all real values of x, except for the case when x = 0. Therefore, domain of f = R – {0} (ii) f (x) = 1/(x−7) Solution: We are given, f (x) = 1/(x−7). Here, f (x) is defined for al
7 min read
Mathematics | Generating Functions - Set 2
Prerequisite - Generating Functions-Introduction and Prerequisites In Set 1 we came to know basics about Generating Functions. Now we will discuss more details on Generating Functions and its applications. Exponential Generating Functions - Let [Tex]h_0, h_1, h_2, ........., h_n, ...... [/Tex]e a sequence. Then its exponential generating function,
3 min read
Self Dual functions in Digital Logic
A function is said to be Self dual if and only if its dual is equivalent to the given function, i.e., if a given function is f(X, Y, Z) = (XY + YZ + ZX) then its dual is, fd(X, Y, Z) = (X + Y).(Y + Z).(Z + X) (fd = dual of the given function) = (XY + YZ + ZX), it is equivalent to the given function. So function is self dual. In a dual function: AND
2 min read
Class 12 RD Sharma Solutions - Chapter 17 Increasing and Decreasing Functions - Exercise 17.1
Question 1: Prove that the function f(x) = loge x is increasing on (0,∞). Solution: Let x1, x2 ∈ (0, ∞) We have, x1<x2 ⇒ loge x1 < loge x2 ⇒ f(x1) < f(x2) Therefore, f(x) is increasing in (0, ∞). Question 2: Prove that the function f(x) = loga (x) is increasing on (0,∞) if a>1 and decreasing on (0,∞) if 0<a<1. Solution: Case 1: Wh
4 min read
Class 11 RD Sharma Solutions - Chapter 3 Functions - Exercise 3.2
Question 1. If f(x)=x2-3x+4, then find the values of x satisfying the equation f(x)=f(2x+1). Solution: We have, f(x)=x2-3x+4 Now, f(2x+1)=(2x+1)2-3(2x+1)+4 f(2x+1)=4x2+1+4x-6x-3+4 f(2x+1)=4x2-2x+2 It is given that f(x)=f(2x+1) x2-3x+4=4x2-2x+2 0=4x2-x2-2x+3x+2-4 3x2+x-2=0 3x2+3x-2x-2=0 3x(x+1)-2(x+1)=0 (x+1)(3x-2)=0 x+1=0 or 3x-2=0 x=-1 or x=2/3 Th
4 min read
Class 11 RD Sharma Solutions - Chapter 6 Graphs of Trigonometric Functions - Exercise 6.2
Question 1: Sketch the following graphs:(i) y = cos (x+[Tex]\frac{\pi}{4}[/Tex]) Solution: To obtain this graph y-0 = cos (x+[Tex]\frac{\pi}{4} [/Tex]), Shifting the origin at [Tex](-\frac{\pi}{4},0) [/Tex], we have X = x+[Tex]\frac{\pi}{4} [/Tex] and Y = y-0 Substituting these values, we get Y = cos X First we draw the graph of Y = cos X and shift
3 min read
Class 11 RD Sharma Solutions - Chapter 5 Trigonometric Functions - Exercise 5.1 | Set 2
Question 14. Prove that [Tex]\frac{(1+cotÎļ+tanÎļ)(sinÎļ-cosÎļ)}{sec^3Îļ-cosec^3Îļ}=sin^2Îļcos^2Îļ [/Tex] Solution: We have [Tex]\frac{(1+cotÎļ+tanÎļ)(sinÎļ-cosÎļ)}{sec^3Îļ-cosec^3Îļ}=sin^2Îļcos^2Îļ [/Tex] Taking LHS = [Tex]\frac{(1+cotÎļ+tanÎļ)(sinÎļ-cosÎļ)}{sec^3Îļ-cosec^3Îļ}[/Tex] = [Tex]\frac{(1+\frac{cosÎļ}{sinÎļ}+\frac{sinÎļ}{cosÎļ})(sinÎļ-cosÎļ)}{\frac{1}{cos^3Îļ}-\frac
7 min read
Class 11 RD Sharma Solutions - Chapter 5 Trigonometric Functions - Exercise 5.2
Question 1. Find the values of the other five trigonometric functions in each of the following:(i) cot x = 12/5, x in quadrant III(ii) cos x = -1/2, x in quadrant II(iii) tan x = 3/4, x in quadrant III(iv) sin x = 3/5, x in quadrant I Solution: (i) cot x = 12/5, x in quadrant III As we knew that tan x and cot x are positive in third quadrant and si
7 min read
Class 11 RD Sharma Solutions - Chapter 5 Trigonometric Functions - Exercise 5.3
Question 1. Find the values of the following trigonometric ratios:(i) sin 5π/3 Solution: We have, sin 5π/3 =sin (2π-π/3) [âˆĩsin(2π-Îļ)=-sinÎļ] =-sin(π/3) = - √3/2 (ii) sin 17π Solution: We have, sin 17π ⇒sin 17π=sin (34×π/2) Since, 17π lies in the negative x-axis i.e. between 2nd and 3rd quadrant =sin 17π [âˆĩ sin nπ=0] = 0 (iii) tan11π/6 Solution: Clea
8 min read
three90RightbarBannerImg