The first mathematical riddle: guessing numbers
This math riddle is very simple, but it is also very interesting. It goes like this: I want a number between 1 and 100. You can guess. Every time you guess, I will tell you "high", "low" or "right". How many times do you have to guess at least before you can guess this number?
This topic seems simple, but it actually needs some thinking skills. We can guess this number by dichotomy. The specific operation steps are as follows:
1. First, let's guess the number 50.
If I tell you "high", then we will guess the number 25.
If I tell you "low", then we will guess the number 75.
4. By analogy, the number of guesses per time will be reduced by half until the guess is correct.
In this way, we can only guess the number seven times at most. This is because each guess can reduce the scope by half, so you only need to guess log2( 100)=7 times at most.
The second math puzzle: the area of triangle
This math puzzle needs some basic knowledge of geometry. The topic is like this: how to calculate the area of a triangle only knowing its three sides?
This problem seems difficult, but it can be solved by Hailong formula. The Hailong formula is like this:
s=(a+b+c)/2
S=sqrt(s(s-a)(s-b)(s-c))
Where s represents the half circumference of the triangle, and A, B and C represent the three side lengths of the triangle respectively. Through this formula, we can easily calculate the area of any triangle.
The third math puzzle: factorial of numbers
This math riddle needs some basic math knowledge. Here's the thing: how to calculate the factorial of a number?
Factorial factor is a very interesting mathematical concept, which represents the product of all integers from 1 to this number. For example, the factorial of 5 is 5! = 1x2x3x4x5= 120 .
Recursive methods can be used to calculate the factorial of a number. The specific operation steps are as follows:
1. If the number is 0 or 1, its factorial is 1.
2. If the number is greater than 1, its factorial is equal to the factorial of the number multiplied by the number less than 1.
In this way, we can easily calculate the factorial of any number.