- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Find the Number of Pentagons and Hexagons on a Football using C++

As we all know, pentagons and hexagons are equally essential parts of football. These shapes fit together like a puzzle for forming a perfectly spherical shape. So here we have a football, in which we have to find the hexagons and pentagons.

We will use the Euler characteristic to solve the problem easily. Euler characteristic is a number that works to describe a specific shape or structure of any topological space. So we can use it for calculating the number of Pentagons and Hexagons on the football.

In Euler characteristics −

**chi(S)**− Integer for a specific surface S**F**− faces**G**− Graph**V**− Vertices**E**− Edges is embedded in S.

We have,

V - E + F = chi(S) V - E + F = 2 ……..(A){ for sphere chi(S) = 2 }

Let, number of Pentagon be P and number of Hexagon be **H**

The **number of vertices** will be −

Six vertices of the hexagon(6*H) + Five vertices of the pentagon (5*P).

The number of vertices, V = (6*H + 5*P), but we have counted each vertex three times.

So Number of vertices, **V = (6*H + 5*P) / 3** ……..(1)

The **number of edges** will be −

Six edges of the hexagon(6*H) + Five edges of the pentagon (5*P).

The number of edges, E = (6*H + 5*P). However, each edge has been counted twice.

Hence Number of edges, **E = (6*H + 5*P) / 2** ……..(2)

**Number of faces** will be −

Number of hexagon (H) + number of pentagon (P)

**F = (H + P)** ……..(3)

Using (1), (2) and (3) in equation (A)

V - E + F = 2

[(6*H + 5*P)/3] - [ (6*H + 5*P)/3 ] + (H + P) = 2

Solving the equation,

**P = 12**

To calculate the number of hexagons, we know that a hexagon surrounds one pentagon, but we have counted each hexagon thrice for each adjacent pentagon.

Number of Hexagons = 5 * P / 3 = (5 * 12) / 3

H = 20

Finally, we found that a football has −

**Count of Hexagons** − 20

**Count of Pentagons** − 12

## Conclusion

So this is how we can find the number of pentagons and hexagons on a football using the Euler characteristic. Pentagons and hexagons play a major role in the creation of the football’s shape. Both of these shapes are enclosed to create the spherical shape of the football. So as you can see in the above solution, we have used different equations to get the required number of pentagons and hexagons on a football.

- Related Articles
- Find the Number of Reflexive Relations on a Set using C++
- Out of 30 students in a class, 6 like football, 12 like cricket and remaining like tennis. Find the ratio of(a) Number of students liking football to number of students liking tennis.(b) Number of students liking cricket to total number of students."
- Find the Number of Triangles Formed from a Set of Points on Three Lines using C++
- Find the Number of Substrings of a String using C++
- Find the number of zeroes using C++
- Find the Number of Primes In A Subarray using C++
- Find the frequency of a digit in a number using C++.
- Find the sum of first and last digit for a number using C language
- Find the Number of Stopping Stations using C++
- Find the number of stair steps using C++
- Find the slope of the given number using C++
- A football is bought for ₹ 120 and sold for 105. Find loss%.
- Find the factorial of a number in pl/sql using C++.
- Find the frequency of a number in an array using C++.
- Find the Number of Sink Nodes in a Graph using C++