Algebra e logica in Jakob Bernoulli