Infron · Motif 3 · 46문항 × 3회 · Python TAR. 131,072 output tokens · 기본 1,800초 · 6+1 turns. ACC는 전체 138회, Pass@1은 각 문항의 첫 유효 시도, Pass@3는 3회 내 정답으로 계산합니다.
수열 이 다음 조건을 만족시킨다. • • 2 이상의 자연수 n에 대하여 이다. 다음은 의 값을 구하는 과정이다. 2 이상의 자연수 n에 대하여 이므로 이고, 이 식을 정리하면 …… ㉠ 이다. ()에서 양변에 n=2를 대입하면 …… ㉡ 이다. ㉠과 ㉡에 의하여 이다. 위의 (가)에 알맞은 식을 이라 하고, (나), (다)에 알맞은 수를 각각 p, q라 할 때, 의 값을 구하시오.
최종 정수 답을 안에 쓰세요.
Recorded Python call:
# Verification of the solution
# Given recurrence: a_1 = 7
# S_n = sum_{k=1}^n a_k = (2/3)a_n + (1/6)n^2 - (1/6)n + 10 for n>=2
# We derived: a_{n+1} = (2/3)(a_{n+1} - a_n) + n/3 => (가) = n/3
# So f(n) = n/3, f(12) = 4.
# Compute a_2 using n=2: S_2 = a_1 + a_2 = 7 + a_2
# RHS: (2/3)a_2 + (1/6)*4 - (1/6)*2 + 10 = (2/3)a_2 + 4/6 - 2/6 + 10 = (2/3)a_2 + 1/3 + 10 = (2/3)a_2 + 31/3
# 7 + a_2 = (2/3)a_2 + 31/3 => 21 + 3a_2 = 2a_2 + 31 => a_2 = 10 => p=10
# Recurrence from ㉠: 2a_n + a_{n+1} = n for n>=2.
# Sum needed: S_12 + sum_{k=1}^5 a_{2k+1} = a_1 + a_2 + sum_{k=1}^5 (2a_{2k+1} + a_{2k+2})
# For each k, n=2k+1 >=3, so 2a_{2k+1} + a_{2k+2} = 2k+1.
# Sum_{k=1}^5 (2k+1) = 3+5+7+9+11 = 35.
# Total = 7 + 10 + 35 = 52 => q=52.
# Then (p*q)/f(12) = (10*52)/4 = 130.
# Let's also verify by computing all a_n up to 12 using recurrence a_{n+1} = n - 2a_n for n>=2.
a = [0]*13
a[1] = 7
a[2] = 10
for n in range(2, 12):
a[n+1] = n - 2*a[n]
print("a_n:", a[1:])
# Compute S_12
S12 = sum(a[1:13])
print("S_12:", S12)
# Compute sum of a_{2k+1} for k=1..5
sum_odd = sum(a[2*k+1] for k in range(1, 6))
print("sum a_{2k+1}:", sum_odd)
total = S12 + sum_odd
print("Total:", total)
# Verify the expression a_1 + a_2 + sum(2a_{2k+1} + a_{2k+2})
alt_sum = a[1] + a[2] + sum(2*a[2*k+1] + a[2*k+2] for k in range(1, 6))
print("Alternative sum:", alt_sum)
# f(12)
f12 = 12/3
print("f(12):", f12)
# Result
p = 10
q = 52
result = (p * q) / f12
print("Result:", result)
The sequence is defined by and for ,
Finding (가) and :
For ,
Since and , the last two terms simplify to .
Hence , so (가) . Thus and .
Finding (나):
Set in the sum formula:
With , we get . So .
Finding (다):
From the rearranged relation,
Now evaluate the required sum:
For , set in :
Thus
Hence the total equals . So .
Final computation:
Comparative Analysis (Pcommon_20) (Average across runs)
Averages use reported measurements only. Missing usage is not treated as zero.