Algebraic formulae for the Moon, Saturn and Jupiter in the Pancasiddhantika