Solution:
Concept: Powers that are added or subtracted cannot be combined into one power. Instead, write each as a multiple of the smallest power, here 3n, using am+n=am×an, and take it out as a common factor.
Step 1 — Simplify the numerator.
We write 3n+1 as 3n×3 and take 3n out as a common factor.
81×3n+1−9×3n=3n(81×3−9)=3n(243−9)=234×3n
Step 2 — Simplify the denominator.
In the same way, 3n+2 is 3n×9 and 3n+1 is 3n×3.
81×3n+2−9×3n+1=3n(81×9−9×3)=3n(729−27)=702×3n
Step 3 — Divide.
The factor 3n cancels, and 702 is 3×234.
702×3n234×3n=702234=31
Watch out: 81×3n+1 is not 243n+1; only powers of the same base combine.
Therefore, the value is 31.