Let m be a positive integer and {an}n≥0 be a sequence given by a0=a∈N, and an+1={2anan+m if an≡0(mod2), otherwise.
Find all values of a such that the sequence is periodical (starting from the beginning). modular arithmeticfunctionalgebra unsolvedalgebra