The coefficient of 3 only affects the amplitude, not the period. Shrinking it horizontally would change the period.