According to the Kojiki and Nihon Shoki , Ketai was a fifth generation grandson of Emperor Å jin . According to the Kojiki ( 712 ) and Nihon Shoki ( 720 ) , Buretsu died without a successor . At which time , a fifth generation grandson of Emperor Å jin , Keitai , came and ascended the throne .