a²-3a+1=0
a-3+1/a=0
a+1/a=3
a²+1/a²
=(a+1/a)²-2
=3²-2
=9-2
=7
a^4+1/a^4
=(a²+1/a²)²-2
=7²-2
=49-2
=47