p1. Determine the number of positive integers less than $2020$ that are written as sum of two powers of $3$.


p2. A student must choose three classes among the branches of Physics, Literature, and Mathematics, to build his $7$-day calendar. Each day he must choose only one of them. The only restriction is that on four consecutive days it must have all three branches. Determine the possible number of calendars that the student can make.


[url=https://artofproblemsolving.com/community/c4h2454972p20439395]p3.[/url] In a triangle $ABC$, the medians $AM$ and $BN$ are drawn, Draw through $N$ a parallel to $BC$ and through $C$ a parallel to $BN$. These two lines intersect at $P$ and let $D$ be the midpoint of $PN$. Show that $CD$ is parallel to $MN$.	


p4. A doctor prescribes his patient to take $48$ pills for $30$ days, at least one and no more than $6$ a day. Prove that no matter how the patient decides to take them, following the doctor's instructions, there are a number of consecutive days when taking exactly $11$ pills.