In Genesis 47, Jacob is presented before Pharaoh:
Then Joseph brought his father Jacob in and presented him before Pharaoh. After Jacob blessed Pharaoh, Pharaoh asked him, "How old are you?"
And Jacob said to Pharaoh, "The years of my pilgrimage are a hundred and thirty. My years have been few and difficult, and they do not equal the years of the pilgrimage of my fathers." Then Jacob blessed Pharaoh and went out from his presence.
Genesis 47:7-10 NIV
Their encounter is brief and centers on Jacob's age. It seems unlikely the narrator is just showing the two making small talk, but why would Pharaoh ask Jacob how old he is?