Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not the number of sets with at most 4 elements (which would be 1820), it's the number of bags with exactly 4 elements (i.e. the multiplicity of duplicate elements matters).

https://en.wikipedia.org/wiki/Bag_(mathematics)#Counting_mul...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: