 One of them includes the geometric progression problem.The story is first known to have been recorded in 1256 by Ibn Khallikan.Another version has the inventor of chess (in some tellings Sessa, an ancient Indian Minister) request his ruler give him wheat according to the wheat and chessboard problem.