Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Sequences of length n with exactly k distinct elements

Revision en2, by saurabhs1206, 2020-12-08 12:36:04

I wish to find the count of sequences of length n consisting of exactly k distinct elements. Can't think of any approach to this.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English saurabhs1206 2020-12-08 12:36:04 9 Tiny change: ' find the sequences' -> ' find the count of sequences'
en1 English saurabhs1206 2020-12-08 12:35:35 174 Initial revision (published)