Periodicity and memory in mice