Your PAN is used for KYC and account identification, but the exact process for retrieving a Demat account number depends on the depository and DP.

If you don’t know your account number, the safest option is to contact your DP and complete the required verification.