Task DescriptionDiscussion (0)

Example: 1.
Example: 2.
Task :: Mirela
Small Mirela is in love with the hexagon. She loves to draw them in a circle, and notes that in each following round of the draft, which has six hexagonal rather than in previous. Mirela first draft of a hexagon, then around him, six new and continues to draw new hexagonal some of those who had already draw. In the first step, the draft is only one hexagon, and in each next step line layer of hexagonal drawn before.

After Mirela make N steps of drawing, you know What is the total hexagonal drawing.
INPUT:
Natural number N (1 ≤ N ≤ 70) - the number of drawing steps.
Natural number N (1 ≤ N ≤ 70) - the number of drawing steps.
OUTPUT:
Total number of drawn hexagonal.
Total number of drawn hexagonal.
Example: 1.
3
19
19
Example: 2.
7
127
127
Submit Solution
Available Languages
Task info
Task Ratings
| Difficulty: | 2 (38 votes) |
| Quality: | 3.1 (30 votes) |
Acceptance Rate
Recent Submissions
Fastest Solutions
| User | Time |
|---|---|
| FilipKeri | 0 s. |
| drugsale | 0 s. |
| oduleodule | 0 s. |
| Martin | 0 s. |
| Nindza | 0 s. |
| dario-dsa | 0 s. |
| mjengic | 0 s. |
| Lovro-lpa | 0 s. |
| Asmirasmir | 0 s. |
| pedja1 | 0 s. |
Solved By
Home
Training
Competitions
Forum
FAQ