I am new to Wolfram, and I am trying to make a recursive Archimedes algorithm in Wolfram.
I read documentation and I tried to run this code
RSolve[{ a[n + 1] == 2^n Sqrt[2 (1 - Sqrt[1 - (a[n]/2^n)^2])], a[1] == 2}, a[n], n]
Table[a[n] /. First[%], {n, 10}]
But instead of a table like if the first line was RSolve[{a[n] == 2 a[n - 1], a[1] == 1}, a[n], n]
I have lots of errors
ReplaceAll::reps: {a[2]==2 Sqrt[2] Sqrt[1-Sqrt[Plus[<<2>>]]],a[1]==2} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used for replacing.
Can somebody help me, where is the error?