JEE Advanced 2021 Paper 1 · Mathematics · Binomial Theorem · hard
Let an=(3+√5)^n+(3-√5)^n. The remainder when lfloor(3+√5)^21rfloor is divided by 8 is ____.
Numerical answer
Let an=(3+5)n+(3−5)n. The remainder when ⌊(3+5)21⌋ is divided by 8 is ____.
Show answer and solution
Answer:7
Since 3±5 are the roots of t2−6t+4=0, the sequence satisfies an+2=6an+1−4an with a0=2, a1=6, so every an is an integer. Because 0<3−5<1, we have 0<(3−5)21<1, hence (3+5)21=a21−(3−5)21 lies strictly between a21−1 and a21, so its floor is a21−1. Reducing the recurrence modulo 8 gives a0,…,a4≡2,6,4,0,0; since an+2≡6an+1−4an, two consecutive zero residues force every later term to be 0, so an≡0(mod8) for all n≥3 (and indeed a21=1256350449401856 is divisible by 8). Thus ⌊(3+5)21⌋≡−1≡7(mod8).