Questions & Answers about Ho comprato un libro scontato.
In Italian, most transitive verbs—verbs that take a direct object—use avere to form the passato prossimo. Since comprare (to buy) directly takes un libro without a preposition, you combine the present of avere with the past participle:
• avere (ho) + comprato = ho comprato
By contrast, essere is reserved for unaccusative verbs (e.g. arrivare, nascere) and reflexive constructions.
Passato prossimo = present tense of avere + past participle of the main verb.
Italian indefinite articles vary by gender and by the initial sound of the noun:
• un + masculine noun starting with a vowel or most consonants (un libro, un amico)
• uno + masculine noun starting with s+consonant, z, ps, gn, x, y (uno studente, uno zaino)
Since libro begins with a simple consonant l, you use un.