Hello,
First of all, I was not able to run your code. It fails on the line
sage: L = [list(u^i) for i in [0..3]]
Hopefully, with list(K(u^i)) instead of list(u^i) it works fine.
I did not check the reference but the units of a quadratic number
fields are the solution of Pell equation with either 1 or -1 (which
are the invertible elements in Z). And actually, the subgroup of
solutions which corresponds to 1 always form a subgroup (which is
either the whole group or a subgroup of index 2). As you can see with
the same example, taking the square of a solution with -1 you get 1
because the norm is multiplicative
sage: x,y = K(u)
sage: x^2-1621*y^2
-1
sage: K(u).norm()
-1
sage: x,y = K(u)**2
sage: x^2-1621*y^2
1
sage: K(u**2).norm()
1
I am not sure it solves the issue from the reference.
Vincent
2014-10-31 10:14 UTC−06:00, Michael Beeson <
profb...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sage-support...@googlegroups.com.
> To post to this group, send email to
sage-s...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sage-support.
> For more options, visit
https://groups.google.com/d/optout.
>