You look up the phone number of the new pizza restaurant down the street and repeat the number silently in your head until you find a pad of paper to write it down. the process of actively repeating the number is called
This is known as the repetition principle and this is used for long term memorization. This is also consistently used by commercials wherein certain keywords are repeated constantly so that one will not forget it over a course of time.