If k is an integer, let c(k) denote the largest cube that is less than or equal to k. Find all positive integers p for which the following sequence is bounded:
a0=p and an+1=3an−2c(an) for n⩾0. geometry3D geometrymodular arithmeticinequalitiesalgebra proposedalgebra