Let $A$ a commutative ring. Show that $(X,X^2+1)$ generate $A[X]$ as $A[X]$-module but is not free.
For the "generating" I tried by induction : if $a\in A$, then $$a=(X^2+1)-aX(X).$$ Then suppose it's true for degree $n$. Let $a_{n+1}X^{n+1}+a_nX^n+...+a_1X+a_0\in A[X].$ Since $a_{n+1}X^{n+1}=a_{n+1}X^{n}X\in (X,X^2+1)$ and that by induction $a_nX^n+...+a_1X+a_0\in (X,X^2+1)$, we have the claim.
Q1) Does it work ?
For the fact that it's not free, we have that $$X(X^2+1)-(X^2+1)X=0$$ and thus, it's not free.
Q2) Does it work for that ?
Q3) Don't have simply that $X$ generate $A[X]$ as $A[X]$-module ? And thus it's free since it's a basis ?
It's simpler to note that $(X^2+1) - X\cdot X = 1 \in (X, X^2 +1)$.
Yes, the fact that a linear combination of elements, $X(X^2+1) - (X^2+1)X$, is zero is sufficient to show that your set isn't a free generating set.
If it were the case that $X$ generated $A[X]$ as an $A[X]$-module we could write $1 = X\cdot f(X)$ for some polynomial $f$. Do you think this is possible?