ผลต่างระหว่างรุ่นของ "01204211/homework5 counting 2"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 30: แถว 30:
 
'''H.7''' In a village, there are <math>n</math> hourses built along a single road.  They plan to plant gardens in front of the hourses; therefore they have to choose a set of hourses to host the gardens.  Since they do not want to plant too many gardens, they do not want to have two gardens on consecutive hourses.  In how many ways can they choose a set of houses such that no two consecutive houses are in the set?  (It is possible that, in the end, they do not plant any garden at all.)
 
'''H.7''' In a village, there are <math>n</math> hourses built along a single road.  They plan to plant gardens in front of the hourses; therefore they have to choose a set of hourses to host the gardens.  Since they do not want to plant too many gardens, they do not want to have two gardens on consecutive hourses.  In how many ways can they choose a set of houses such that no two consecutive houses are in the set?  (It is possible that, in the end, they do not plant any garden at all.)
  
For example, if we have 3 houses these are the ways
+
For example, if we have 3 houses these are the 5 ways to choose houses.  (* is chosen; o is not)
  
 +
1 2 3
 +
-----
 
  o o o
 
  o o o
 
  * o o
 
  * o o

รุ่นแก้ไขเมื่อ 01:25, 4 ตุลาคม 2558

This is part of 01204211-58

Due: 19 Oct 2015

H.1

H.2 How many anagrams can you make from the word INNOVATION?

H.3 How many sorted lists of integer of length consisting only integers from to are there? (For example, when and , there are 6 of them (i.e.: 1,1; 2,2; 3,3; 1,2; 1,3; and 2,3)).

H.4 (LPV-3.4.1) In how many ways can you distribute all pennies to children if each child is supposed to get at least 2?

H.5 (LPV-3.6.3) Prove the following identity:

H.6 (LPV-3.8.8) Prove the following identity

H.7 In a village, there are hourses built along a single road. They plan to plant gardens in front of the hourses; therefore they have to choose a set of hourses to host the gardens. Since they do not want to plant too many gardens, they do not want to have two gardens on consecutive hourses. In how many ways can they choose a set of houses such that no two consecutive houses are in the set? (It is possible that, in the end, they do not plant any garden at all.)

For example, if we have 3 houses these are the 5 ways to choose houses. (* is chosen; o is not)

1 2 3
-----
o o o
* o o
* o *
o * o
o o *