počítání s funkcí, která volá sama sebe