Question: how many hydrogen atoms are attached to each carbon participating in a double bond?
Answer: The two end C atoms each have one bond to middle C atom, so the number of hydrogen atoms on them is 4−n=4−3=3 . The middle C atom has two bonds going to the other carbons, so it has 4−n=4−2=2 hydrogen atoms.