Mathematical and Physical Journal
for High Schools
Issued by the MATFUND Foundation
Already signed up?
New to KöMaL?
I want the old design back!!! :-)

Problem I. 156. (March 2007)

I. 156. We obtain interesting patterns if regular polygons of different size are drawn on the sides of each other.

Prepare your program that draws an n-sided regular polygon (3\len<10) onto each side in the interior of another n-sided regular polygon. Trisection points of the sides of the larger polygon define sides of the smaller polygons. Then apply this procedure iteratively k (1<k<10) times to each of the new polygons. The parameters n and k are read from the command line ( i156.exe 4 85 in the second example). The image should be placed in the middle of the screen, in the largest size for all details to be visible.

The source code of the program (i156.pas, i156.cpp, ...) should be submitted.

(10 pont)

Deadline expired on April 16, 2007.

Sorry, the solution is available only in Hungarian. Google translation

A feladat mintamegoldása: i156.rar


12 students sent a solution.
10 points:Balambér Dávid, Biró János, Danka Miklós András, Gilián Zoltán, Györök Péter, Polgárfi Bálint, Ridinger Tamás, Szoldatics András, Véges Márton, Vincze János.
8 points:1 student.
6 points:1 student.

Problems in Information Technology of KöMaL, March 2007