#include <stdio.h>
int func(int n){
if(n==0)
return -1;
else
return 3*func(n-1)+5;
}
int main(void) {
// your code goes here
int n=3,m;
printf("数列anについて、n=%dの時%d",n
,func
(n
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBmdW5jKGludCBuKXsKCWlmKG49PTApCgkJcmV0dXJuIC0xOwoJZWxzZQoJCXJldHVybiAzKmZ1bmMobi0xKSs1Owp9CmludCBtYWluKHZvaWQpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCBuPTMsbTsKCXByaW50Zigi5pWw5YiXYW7jgavjgaTjgYTjgabjgIFuPSVk44Gu5pmCJWQiLG4sZnVuYyhuKSk7CglyZXR1cm4gMDsKfQo=