First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 1 year ago

Max Alekseyev gravatar image

A possible solution is to use numerical representation for digits:

sage: ZZ(100).digits(37)
[26, 2]
sage: ZZ([26, 2], 37)
100