<div id="comment:0"></div> ``` sage: R.<x> = PolynomialRing(Zp(17), sparse=True) sage: x**(10**10) Traceback (most recent call last) ... MemoryError: ``` This should work (and be fast). The solution is probably in the file `polynomial_ring_constructor.py` in the function `single_variate`. CC: @roed314 @xcaruso Component: **algebra** Keywords: **padicIMA** Author: **Julian Rüth** Reviewer: **Julian Rüth** _Issue created by migration from https://trac.sagemath.org/ticket/9929_