for several primes P with good reduction, find the list of possible global periods of a Dynamical System
CC: @bhutz
Component: dynamics
Author: Saher Amasha,Safa Amasha
Branch/Commit: u/gh-Saher-Amasha/added_function_all_possible_global_periods @ c8af081
Issue created by migration from https://trac.sagemath.org/ticket/31872