#include <stdio.h>
//練習問題F
int main(void) {
int n = 3;
int an=-1;
for(int i=0;i<n;i++){
an=3*an+5;
}
printf("数列anについて, n=%dのときの値は%d\n", n
, an
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v57e057+S5ZWP6aGMRgppbnQgbWFpbih2b2lkKSB7CglpbnQgbiA9IDM7CiAgICBpbnQgYW49LTE7CiAgICBmb3IoaW50IGk9MDtpPG47aSsrKXsKICAgIGFuPTMqYW4rNTsKICAgIH0KICAgIHByaW50Zigi5pWw5YiXYW7jgavjgaTjgYTjgaYsIG49JWTjga7jgajjgY3jga7lgKTjga8lZFxuIiwgbiwgYW4pOwoJcmV0dXJuIDA7Cn0K