Research vs. development: Optimal patenting policy in a three-stage model · Study