#include <stdio.h>
int c;
int rec(int n){
c++;
if(n==1){
return 1;
}else if(n==2){
return 2;
}else{
return -6*rec(n-1)-9*rec(n-2);
}
}
int main(void) {
int n = 5;
printf("a%d is %d\n",n
,rec
(n
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgYzsKCmludCByZWMoaW50IG4pewoJYysrOwoJCglpZihuPT0xKXsKCQlyZXR1cm4gMTsKCX1lbHNlIGlmKG49PTIpewoJCXJldHVybiAyOwoJfWVsc2V7CgkJcmV0dXJuIC02KnJlYyhuLTEpLTkqcmVjKG4tMik7CgkJCgl9Cn0KCmludCBtYWluKHZvaWQpIHsKCWludCBuID0gNTsKCXByaW50ZigiYSVkIGlzICVkXG4iLG4scmVjKG4pKTsKCXByaW50ZigiJWQgaXMgY291bnQiLGMpOwoJcmV0dXJuIDA7Cn0K