Problem 1: Sierpinski gasket

This fractal is based on squares pattern below:

basit ┼čekiller basit ┼čekiller

Problem 2: Population estimate

A city's population is \(p\) and increasing at a rate \(r\) every year. For example Antalya's population was 1.800.000 in 2008 and increased at a rate of 0.12 (i.e. 12%) every year.

Write a function to find expected population in \(n\ge 0\) years from now given current population \(p\ge 0\) and increase rate $ r <ge 0$.