Using array for heartbeat sequence {1,2,4,8,15}