Vrijeme: 10:38

Mentorski snovi | Dreams of five mentors #4

U Simeonovom snu on je pastir čije ovce dolaze u raznim bojama! Konkretno postoje crvene, zelene, plave i crne ovce, a ima ih ukupno 32.
Crvene, zelene i plave ovce su numerirane brojevima od 1 do 10 i svaka košta 2^k peneza gdje je k broj ovce. Crne ovce koštaju 1 penez.
Pastira Simeona zanima na koliko načina može odabrati skup ovaca tako da one zajedno koštaju 2004 peneza?
n Simeon's dream, he is a shepherd whose sheep come in different colors! Specifically, there are red, green, blue and black sheep, and there are a total of 32.
Red, green and blue sheep are numbered from 1 to 10 and each costs 2^k pennies where k is the number of the sheep. Black sheep cost 1 pennies.
Shepherd Simeon is interested in how many ways he can choose a set of sheep so that they together cost 2,004 pennies?