The second dog carried off 1 less bone than the first dog, or 3-1=<<3-1=2>>2 bones.
The third dog carried off twice as many bones as the third dog, or 2*2=<<2*2=4>>4 bones.
The fifth dog carried off twice the number of bones as the fourth dog carried, or 2*1=2 bones.
Therefore, the original pile of bones contained 3+2+4+1+2=<<3+2+4+1+2=12>>12 bones.
#### 12