Exchanging coins problem

Do we have to find the maximum gold that can be possible upto n , or of only n?

@Anubhav44044,
only n.