First time here? Check out the FAQ!
answered 2020-04-03 14:49:56 +0100
The alternative solution from an answer to a previous question applies:
sage: F.<x> = GF(3^15) sage: i = 231 sage: a = F(i.digits(3)) sage: ZZ(list(vector(a)),base=3) 231